Allbridge Classic

/getsupportedchains

Get the list of chains supported by Squid Router, on expand.network.

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

Query Parameters

Name
Type
Description

bridgeId*

String

Refer to the Bridge ID page for details.

rpc

String

Remote procedural call URL.

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

/getsupportedtokens

Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.

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

Query Parameters

Name
Type
Description

bridgeId*

String

Refer to the Bridge ID page for details.

rpc

String

Remote procedural call URL.

chainId*

String

Refer to the Chain ID page for details.

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

/getprice

Get the swap quotation for the given token pairs.

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

Query Parameter

Name
Type
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.

/getsignature

Retrieves the signature details using the transaction hash of swap.

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

Query Parameter

Name
Type
Description

rpc

String

Remote procedural call URL.

bridgeId*

String

Refer to the Bridge ID page for details.

transactionHash*

String

Transaction hash.

/gettransaction

Retrieves the details of the transaction.

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

Query Parameter

Name
Type
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. If txn involve Stellar, use Stellar chainId as srcChainId

/swap

Initiates a transaction to swap assets accross multiple chains.

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

Request Body

Name
Type
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.

With Gas Priority

/unlock

Initiate the transaction to unlock asset on the destination chain.

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

Request Body

Name
Type
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.

With Gas Priority

Last updated