Squid Router
/gettransaction
Get details of a transaction.
GET https://api.expand.network/bridge/gettransaction
Query Parameters
rpc
String
Remote procedural call URL.
transactionHash*
String
The transaction hash.
https://api.expand.network/bridge/gettransaction?bridgeId=200&transactionHash=0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c{
"status": 200,
"msg": "success",
"data": {
"srcTx": {
"transactionId": "0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c",
"blockNumber": 18268161,
"callEventStatus": "",
"callEventLog": [],
"chainData": {
"chainName": "Ethereum",
"chainType": "evm",
"rpc": "https://eth-rpc.gateway.pokt.network",
"networkName": "Ethereum",
"chainId": 1,
"nativeCurrency": {
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"icon": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg"
},
"swapAmountForGas": "2000000",
"chainIconURI": "https://raw.githubusercontent.com/0xsquid/assets/main/images/tokens/eth.svg",
"blockExplorerUrls": [
"https://etherscan.io/"
],
"chainNativeContracts": {
"wrappedNativeToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"ensRegistry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
"multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
"usdcToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"axelarContracts": {
"gateway": "0x4F4495243837681061C4743b74B3eEdf548D56A5",
"forecallable": ""
},
"squidContracts": {
"squidRouter": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
"defaultCrosschainToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"squidMulticall": "0x4fd39C9E151e50580779bd04B1f7eCc310079fd3",
"squidFeeCollector": "0x19cd4F3820E7BBed45762a30BFA37dFC6c9C145b"
},
"estimatedRouteDuration": 960,
"estimatedExpressRouteDuration": 20
},
"transactionUrl": "https://etherscan.io/tx/0x06477aa2bc628a40caeaae660c1ac0e3acb18b4131aae55525d591fafe0cbc7c"
},
"dstTx": {
"transactionId": "0x299de1b382b8b9636f6d5db1fb3b86ef1751405bc6f7f2c8bf80fe333e18e8e9",
"blockNumber": 48266930,
"callEventStatus": "CrossMulticallExecuted",
"callEventLog": [
{
"contractAddress": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
"args": {
"eventFragment": {
"name": "CrossMulticallExecuted",
"anonymous": false,
"inputs": [
{
"name": "payloadHash",
"type": "bytes32",
"indexed": true,
"components": null,
"arrayLength": null,
"arrayChildren": null,
"baseType": "bytes32",
"_isParamType": true
}
],
"type": "event",
"_isFragment": true
},
"name": "CrossMulticallExecuted",
"signature": "CrossMulticallExecuted(bytes32)",
"topic": "0x7c3aa10c5d96985be6de7d2e6fa79bdef95a95a9cb272f4113b3fe1ca89fedae",
"args": [
"0xc7dfe38f4bb44d51e72b967887a89b438b8daf162529b917bcd7b75e7d469505"
]
}
}
],
"chainData": {
"chainName": "Polygon",
"chainType": "evm",
"rpc": "https://polygon-rpc.com",
"networkName": "Polygon",
"chainId": 137,
"nativeCurrency": {
"name": "Polygon",
"symbol": "MATIC",
"decimals": 18,
"icon": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/polygon.svg"
},
"swapAmountForGas": "2000000",
"chainIconURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/polygon.svg",
"blockExplorerUrls": [
"https://polygonscan.com/"
],
"chainNativeContracts": {
"wrappedNativeToken": "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
"ensRegistry": "",
"multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
"usdcToken": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
},
"axelarContracts": {
"gateway": "0x6f015F16De9fC8791b234eF68D486d2bF203FBA8",
"forecallable": "0x2d5d7d31F671F86C782533cc367F14109a082712"
},
"squidContracts": {
"squidRouter": "0xce16F69375520ab01377ce7B88f5BA8C48F8D666",
"defaultCrosschainToken": "0x750e4C4984a9e0f12978eA6742Bc1c5D248f40ed",
"squidMulticall": "0x4fd39C9E151e50580779bd04B1f7eCc310079fd3",
"squidFeeCollector": "0x19cd4F3820E7BBed45762a30BFA37dFC6c9C145b"
},
"estimatedRouteDuration": 360,
"estimatedExpressRouteDuration": 20
},
"transactionUrl": "https://polygonscan.com/tx/0x299de1b382b8b9636f6d5db1fb3b86ef1751405bc6f7f2c8bf80fe333e18e8e9"
}
}
}/getprice
Get the swap quotation for the given token pairs.
GET https://api.expand.network/bridge/getprice
Query Parameters
rpc
String
Remote procedural call URL.
srcTokenSymbol*
String
Source token symbol.
dstTokenSymbol*
String
Destination token symbol.
amountIn*
String
Amount of token.
/chains
Get the list of chains supported by Squid Router, on expand.network.
GET https://api.expand.network/bridge/chains
Query Parameters
rpc
String
Remote procedural call URL.
/tokens
Get the list of tokens supported by Squid Router, on the specified chain, on expand.network.
GET https://api.expand.network/bridge/tokens
Query Parameters
/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
rpc
String
Remote procedural call URL.
srcTokenSymbol*
String
Source token symbol.
dstTokenSymbol*
String
Destination token symbol.
amountIn*
String
Amount of token.
/swap
Swap assets across multiple chains.
POST https://api.expand.network/bridge/swap
Request Body
rpc
String
Remote procedural call URL.
srcChainId
String
Source Chain Id. By default, Ethereum mainnet. Refer to the Chain Id page for details.
dstChainId*
String
Destination chain id.
srcTokenSymbol*
String
Source Token Symbol.
dstTokenSymbol*
String
Destination Token Symbol.
amountIn*
String
Amount of token.
from*
String
Address of the sender of the token.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
to*
String
Address of the recipient of the token.
gasPriority
String
low, medium, or high.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10
With gasPriority:
With gasPriority:
With slippage:
With slippage:
Last updated

