Cosmos route response
Example of Cosmos to EVM route response
{
"route": {
"estimate": {
"fromAmount": "1000000",
"sendAmount": "2556926",
"toAmount": "97909328653499550",
"toAmountMin": "94972048793894564",
"fromAmountUSD": "1.00",
"route": {
"fromChain": [
{
"type": "Swap",
"chainId": "osmo-test-5",
"dex": "Osmosis",
"poolId": "46",
"fromToken": {
"chainId": "osmo-test-5",
"address": "ibc/40F1B2458AEDA66431F9D44F48413240B8D28C072463E2BF53655728683583E3",
"name": "USD Coin",
"symbol": "USDC",
"decimals": 6,
"logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389",
"coingeckoId": "usd-coin",
"bridgeOnly": false,
"pathKey": "nusdc_osmosis"
},
"toToken": {
"chainId": "osmo-test-5",
"address": "ibc/6F34E1BD664C36CE49ACC28E60D62559A5F96C4F9A6CCE4FC5A67B2852E24CFE",
"name": "Axelar USD Coin",
"symbol": "aUSDC",
"decimals": 6,
"logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389",
"coingeckoId": "usd-coin",
"bridgeOnly": false,
"commonKey": "uausdc",
"pathKey": "axlusdc_osmosis"
},
"toAmount": "2749481",
"priceImpact": "0.03",
"toAmountMin": "2694491"
},
{
"type": "Transfer",
"fromChain": "osmo-test-5",
"toChain": "axelar-testnet-lisbon-3",
"fromToken": {
"chainId": "osmo-test-5",
"address": "ibc/6F34E1BD664C36CE49ACC28E60D62559A5F96C4F9A6CCE4FC5A67B2852E24CFE",
"name": "Axelar USD Coin",
"symbol": "aUSDC",
"decimals": 6,
"logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389",
"coingeckoId": "usd-coin",
"bridgeOnly": false,
"commonKey": "uausdc",
"pathKey": "axlusdc_osmosis"
},
"toToken": {
"chainId": "axelar-testnet-lisbon-3",
"address": "uausdc",
"name": "Axelar USD Coin",
"symbol": "aUSDC",
"decimals": 6,
"logoURI": "https://s2.coinmarketcap.com/static/img/coins/64x64/21420.png",
"coingeckoId": "axlusdc",
"commonKey": "uausdc",
"bridgeOnly": false,
"pathKey": "axlusdc_axelar"
},
"fromChannel": "channel-3",
"toChannel": "channel-227"
}
],
"toChain": [
{
"type": "SWAP",
"dex": {
"chainName": "Avalanche",
"dexName": "Pangolin",
"swapRouter": "0x2D99ABD9008Dc933ff5c0CD271B88309593aB921",
"factory": "0xE4A575550C2b460d2307b82dCd7aFe84AD1484dd",
"isCrypto": true
},
"target": "0x2D99ABD9008Dc933ff5c0CD271B88309593aB921",
"path": [
"0x57f1c63497aee0be305b8852b354cec793da43bb",
"0xd00ae08403B9bbb9124bB305C09058E32C39A48c"
],
"swapType": "crypto",
"squidCallType": 1,
"fromToken": {
"chainId": 43113,
"address": "0x57f1c63497aee0be305b8852b354cec793da43bb",
"name": "Axelar USDC",
"symbol": "aUSDC",
"decimals": 6,
"logoURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/assets/usdc.svg",
"coingeckoId": "axlusdc",
"commonKey": "uausdc"
},
"toToken": {
"chainId": 43113,
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"name": "Avalanche",
"symbol": "AVAX",
"decimals": 18,
"logoURI": "https://axelarscan.io/logos/chains/avalanche.svg",
"coingeckoId": "avalanche-2",
"commonKey": "wavax-wei"
},
"fromAmount": "2556926",
"toAmount": "97909328653499550",
"toAmountMin": "94972048793894564",
"exchangeRate": "0.03849645853684",
"priceImpact": "0.53",
"isFrom": false,
"dynamicSlippage": 3
}
]
},
"feeCosts": [
{
"name": "Gas Receiver Fee",
"description": "Estimated Gas Receiver fee",
"percentage": "0",
"token": {
"chainId": "axelar-testnet-lisbon-3",
"address": "uausdc",
"name": "Axelar USD Coin",
"symbol": "aUSDC",
"decimals": 6,
"logoURI": "https://s2.coinmarketcap.com/static/img/coins/64x64/21420.png",
"coingeckoId": "axlusdc",
"commonKey": "uausdc",
"bridgeOnly": false,
"pathKey": "axlusdc_axelar"
},
"amount": "192555",
"amountUSD": "0.1926"
}
],
"gasCosts": [
{
"type": "executeCall",
"token": {
"chainId": "osmo-test-5",
"address": "ibc/40F1B2458AEDA66431F9D44F48413240B8D28C072463E2BF53655728683583E3",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6,
"logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389",
"coingeckoId": "usd-coin"
},
"amount": "20000",
"amountUSD": "0.0200",
"gasPrice": "0.025uosmo",
"maxFeePerGas": "1.3",
"estimate": "500000000000",
"limit": "650000000000"
}
],
"estimatedRouteDuration": 180,
"isExpressSupported": false,
"exchangeRate": "0.09790932865349955",
"aggregatePriceImpact": "0.56",
"toAmountUSD": "1.3081"
},
"params": {
"customCosmosContractCall": {},
"cosmosSignerAddress": "osmo1eaztm3pqrkw2xgt0lxppahtx5v5pndmjg6yfrh",
"slippage": 3,
"toAddress": "0x747A6e3824FAB0d1266306C3b492fcB941C5dd93",
"fromAmount": "1000000",
"toToken": {
"chainId": 43113,
"address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",
"name": "Avalanche",
"symbol": "AVAX",
"decimals": 18,
"logoURI": "https://axelarscan.io/logos/chains/avalanche.svg",
"coingeckoId": "avalanche-2",
"commonKey": "wavax-wei"
},
"fromToken": {
"chainId": "osmo-test-5",
"address": "ibc/40F1B2458AEDA66431F9D44F48413240B8D28C072463E2BF53655728683583E3",
"name": "USD Coin",
"symbol": "USDC",
"decimals": 6,
"logoURI": "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png?1547042389",
"coingeckoId": "usd-coin",
"bridgeOnly": false,
"pathKey": "nusdc_osmosis"
},
"toChain": "43113",
"fromChain": "osmo-test-5"
},
"transactionRequest": {
"routeType": "CALL_BRIDGE_CALL",
"data": "{\"msgTypeUrl\":\"/cosmwasm.wasm.v1.MsgExecuteContract\",\"msg\":{\"wasm\":{\"contract\":\"osmo1zl9ztmwe2wcdvv9std8xn06mdaqaqm789rutmazfh3z869zcax4sv0ctqw\",\"msg\":{\"swap_with_action\":{\"swap_msg\":{\"token_out_min_amount\":\"2694491\",\"path\":[{\"pool_id\":\"46\",\"token_out_denom\":\"ibc/6F34E1BD664C36CE49ACC28E60D62559A5F96C4F9A6CCE4FC5A67B2852E24CFE\"}]},\"after_swap_action\":{\"ibc_transfer\":{\"receiver\":\"axelar1dv4u5k73pzqrxlzujxg3qp8kvc3pje7jtdvu72npnt5zhq05ejcsn5qme5\",\"channel\":\"channel-3\",\"next_memo\":{\"destination_chain\":\"avalanche\",\"destination_address\":\"0x481A2AAE41cd34832dDCF5A79404538bb2c02bC8\",\"payload\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,116,122,110,56,36,250,176,209,38,99,6,195,180,146,252,185,65,197,221,147,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,96,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,87,241,198,52,151,174,224,190,48,91,136,82,179,84,206,199,147,218,67,187,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,87,241,198,52,151,174,224,190,48,91,136,82,179,84,206,199,147,218,67,187,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,68,9,94,167,179,0,0,0,0,0,0,0,0,0,0,0,0,45,153,171,217,0,141,201,51,255,92,12,210,113,184,131,9,89,58,185,33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,87,241,198,52,151,174,224,190,48,91,136,82,179,84,206,199,147,218,67,187,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,45,153,171,217,0,141,201,51,255,92,12,210,113,184,131,9,89,58,185,33,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,224,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,4,103,101,40,209,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,39,3,254,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,81,104,147,63,243,126,164,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,0,0,0,0,0,0,0,0,0,0,0,0,116,122,110,56,36,250,176,209,38,99,6,195,180,146,252,185,65,197,221,147,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,137,69,196,115,188,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,87,241,198,52,151,174,224,190,48,91,136,82,179,84,206,199,147,218,67,187,0,0,0,0,0,0,0,0,0,0,0,0,208,10,224,132,3,185,187,185,18,75,179,5,192,144,88,227,44,57,164,140,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,87,241,198,52,151,174,224,190,48,91,136,82,179,84,206,199,147,218,67,187,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"type\":2}}},\"local_fallback_address\":\"osmo1eaztm3pqrkw2xgt0lxppahtx5v5pndmjg6yfrh\"}}}}}",
"value": "192555",
"gasLimit": "650000000000",
"gasPrice": "0.025uosmo",
"maxFeePerGas": "1.3"
}
}
}
Last updated