v1

latestOpenAPI 3.1.02026-07-1461212.2 KB

Get transaction route information

Returns transaction route information and call data object

get/route

Query parameters

fromChainstring required

From Chain Id

toChainstring required

To Chain Id

fromTokenstring required

From Chain Token Address

toTokenstring required

To Chain Token Address

fromAmountstring required

Amount to be sent from To Chain

fromAddressstring

From address. EVM address for EVM to Cosmos, and Cosmos address for Cosmos to EVM.

toAddressstring required

To Chain recipient address

slippagestring required

slippage allowance, allowed value > 0 and < 99.99

quoteOnlyboolean

Only get the route quote and exclude call data

enableExpressboolean

Enable Express feature

callTypenumber

See Contract call types in Squid documentation

targetstring

Address of the smart contract to be called.

valuestring

Amount of native coin, in most scenarios should be "0"

callDatastring

Contract call encoded call data

estimatedGasstring

Amount of gas of the call

Array of custom contract calls (Parameter not supported in Readme due to OpenAPI limitation)

[
  {
    "callType": 1,
    "target": "0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664",
    "value": "0",
    "callData": "0x095ea7b30000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b479975060000000000000000000000000000000000000000000000000000000000000000",
    "estimatedGas": "400000",
    "payload": {
      "tokenAddress": "0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664"
    }
  }
]
prefer[]DexNames[]

Array of supported dex names for this transaction

receiveGasOnDestinationboolean

Receive gas on destination chain

Headers

x-request-idstring

Request Id for API Request. If missing, it'll be auto-generated for each request

x-integrator-idstring

Integrator Identifier

Response

Route API response object