Squid Router

Supported Chains

See full list of source and destination chains (including supported testnets) here

Source Chains: Ethereum, Arbitrum, Binance Smart Chain, Avalanche, Polygon, Fantom, Optimism, Base

Destination Chains: here

/gettransaction

Get details of a transaction.

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

Query Parameters

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

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

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

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

/getroute

Get the route details as to how the tokens will be bridged, token amount, etc.

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

Query Parameters

https://api.expand.network/bridge/getroute?bridgeId=200&dstChainId=137&srcTokenSymbol=ETH&dstTokenSymbol=USDC&amountIn=100000000000

/swap

Swap assets across multiple chains.

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

Request Body

{
    "bridgeId": "200",
    "srcChainId": "1",
    "dstChainId": "137",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "USDC",
    "amountIn": "100000000000000",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "920000",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}

With gasPriority:

{
    "bridgeId": "200",
    "srcChainId": "1",
    "dstChainId": "137",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "USDC",
    "amountIn": "1000000000000",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "920000",
    "gasPriority": "medium",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994"
}

With slippage:

{
    "bridgeId": "200",
    "srcChainId": "1",
    "dstChainId": "137",
    "srcTokenSymbol": "WETH",
    "dstTokenSymbol": "MATIC",
    "amountIn": "1000000000000",
    "from": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "gas": "920000",
    "to": "0xa67E9B68c41b0f26184D64C26e0b2B81466E5994",
    "slippage": "3"
}

Last updated