Allbridge Classic

/getprice

Get the swap quotation for the given token pairs.

GET https://api.expand.network/bridge/getprice

Query Parameter

NameType Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

srcChainId*

String

Chain Id of the source chain.

dstChainId*

String

Chain Id of the destination chain.

srcTokenSymbol*

String

Source token symbol.

amountIn*

String

Amount of token.

https://api.expand.network/bridge/getprice?bridgeId=300&srcTokenSymbol=ABR&amountIn=1000000&dstChainId=137&srcChainId=1

/getsupportedchains

Retrieves the list of chains supported by Allbridge Classic , on expand.network.

GET https://api.expand.network/bridge/getsupportedchains

Query Parameter

NameType Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

https://api.expand.network/bridge/getsupportedchains?bridgeId=300

/getsupportedtokens

Retrieves the list of tokens supported by Allbridge Classic, on expand.network.

GET https://api.expand.network/bridge/getsupportedtokens

Query Parameter

NameType Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

chainId*

String

Refer to the Chain ID page for details.

https://api.expand.network/bridge/getsupportedtokens?chainId=1&bridgeId=300

/getsignature

Retrieves the signature details using the transaction hash of swap.

GET https://api.expand.network/bridge/getsignature

Query Parameter

NameType Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

transactionHash*

String

Transaction hash.

https://api.expand.network/bridge/getsignature?bridgeId=300&transactionHash=0x99a84b7795cb31c11eb70282ef7d8ae3e214edb36b1bea8a65419478130335e8

/gettransaction

Retrieves the details of the transaction.

GET https://api.expand.network/bridge/gettransaction

Query Parameter

NameType Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

transactionHash*

String

Transaction hash.

srcChainId

String

Chain Id of the source chain.

https://api.expand.network/bridge/gettransaction?bridgeId=300&transactionHash=0x6cb511887f3c4dfbc8e2eacd346c7a8959f9debfcffc347862957ac41a0dfae1&srcChainId=56

/swap

Initiates a transaction to swap assets accross multiple chains.

POST https://api.expand.network/bridge/swap

Request Body

NameType Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

srcChainId*

String

Chain Id of the source chain.

dstChainId*

String

Chain Id of the destination chain.

srcTokenSymbol*

String

Source token symbol.

amountIn*

String

Amount of token.

gas*

String

Maximum gas limit provided by the sender, for the transaction.

gas priority

String

Low, medium, or high.

from*

String

Address of the sender of the token.

to*

String

Address of the recipient of the token.

{
    "amountIn": "1064785710830000000000",
    "dstChainId": "56",
    "srcChainId": "1",
    "from": "0x7aeaefe59a06c965aa3e93ea31be01d3b625bf18",
    "to": "0x68C7cE94055f927ea7D6331a199cec69ca2d518B",
    "srcTokenSymbol": "HAPI",
    "gas": "100",
    "bridgeId": "300"
}

With Gas Priority

{
    "amountIn": "1064785710830000000000",
    "dstChainId": "56",
    "srcChainId": "1",
    "from": "0x7aeaefe59a06c965aa3e93ea31be01d3b625bf18",
    "to": "0x68C7cE94055f927ea7D6331a199cec69ca2d518B",
    "srcTokenSymbol": "HAPI",
    "gas": "100",
    "bridgeId": "300",
    "gasPriority": "low"
}

/unlock

Initiate the transaction to unlock asset on the destination chain.

POST https://api.expand.network/bridge/unlock

Request Body

NameType Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

srcChainId*

String

Chain Id of the source chain.

dstChainId*

String

Chain Id of the destination chain.

dstTokenSymbol*

String

Destination token symbol.

amount*

String

Amount of token.

gas*

String

Maximum gas limit provided by the sender, for the transaction.

gas priority

String

Low, medium, or high.

receiver*

String

Address of the receiver.

primarySignature*

String

Signature required for EVM to EVM to unlock transaction.

secondarySignature

String

Signature required for Stellar to EVM or vice - versa to unlock transaction.

lockId*

String

Lock Id.

{
    "lockId": "2344087691488240225697848222060823058",
    "srcChainId": "1500",
    "dstChainId": "137",
    "amount": "200000000",
    "receiver": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
    "dstTokenSymbol": "USDC",
    "primarySignature": "0x426361bb4b3317c04cf61ea9f1b1c736568e37468e042fb485905c984e8f548d2424ebbe6e89762a9d5925140acfacdb789bdc029f4d7095cc982b94530e73211b",
    "secondarySignature": "0xb41459682c24b425f86a3d3d24f7c424025a01a92413cdaa028519c4aa8023ac38a9f23e37b97c9fa2da99f4292d647d0494f23c94658828f8846bcba8164b4b1c",
    "gas": "20000",
    "bridgeId": "300"
}

With Gas Priority

{
    "lockId": "2344087691488240225697848222060823058",
    "srcChainId": "1500",
    "dstChainId": "137",
    "amount": "200000000",
    "receiver": "0xB409cB0b5DB9f148d0bc491E140D9E0FDd789C11",
    "dstTokenSymbol": "USDC",
    "primarySignature": "0x426361bb4b3317c04cf61ea9f1b1c736568e37468e042fb485905c984e8f548d2424ebbe6e89762a9d5925140acfacdb789bdc029f4d7095cc982b94530e73211b",
    "secondarySignature": "0xb41459682c24b425f86a3d3d24f7c424025a01a92413cdaa028519c4aa8023ac38a9f23e37b97c9fa2da99f4292d647d0494f23c94658828f8846bcba8164b4b1c",
    "gas": "20000",
    "gasPriority": "low",
    "bridgeId": "300"
}

Last updated