Squid Router

/gettransaction

Get details of a transaction.

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

Query Parameters

NameTypeDescription

rpc

String

Remote procedural call URL.

transactionHash*

String

The transaction hash.

bridgeId*

String

Refer to the Bridge ID page for details.

https://api.expand.network/bridge/gettransaction?bridgeId=200&transactionHash=0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c

/getprice

Get the swap quotation for the given token pairs.

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

Query Parameters

NameTypeDescription

rpc

String

Remote procedural call URL.

srcChainId

String

Chain Id of the source chain.

bridgeId*

String

Refer to the Bridge ID page for details.

dstChainId*

String

Chain Id of the destination chain.

srcTokenSymbol*

String

Source token symbol.

dstTokenSymbol*

String

Destination token symbol.

amountIn*

String

Amount of token.

https://api.expand.network/bridge/getprice?bridgeId=200&srcTokenSymbol=WBTC&dstTokenSymbol=BNB&srcChainId=1&amountIn=100000&dstChainId=56

/getsupportedchains

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

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

Query Parameters

NameTypeDescription

bridgeId*

String

Refer to the Bridge ID page for details.

rpc

String

Remote procedural call URL.

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

/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

NameTypeDescription

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=200&chainId=1