---
title: "Get transaction route information"
method: GET
path: "/route"
---

# Get transaction route information

`GET /route`

Returns transaction route information and call data object

## Query parameters

- `fromChain` string, required
- `toChain` string, required
- `fromToken` string, required
- `toToken` string, required
- `fromAmount` string, required
- `fromAddress` string
- `toAddress` string, required
- `slippage` string, required
- `quoteOnly` boolean
- `enableExpress` boolean
- `customContractCalls` CustomContractCall[]
  - `callType` number — See Contract call types in Squid documentation
  - `target` string — Address of the smart contract to be called.
  - `value` string — Amount of native coin, in most scenarios should be "0"
  - `callData` string — Contract call encoded call data
  - `estimatedGas` string — Amount of gas of the call
  - `payload` object
    - `tokenAddress` string — Address of the ERC20 token
    - `inputPos` string — Position of the amount argument in the contract call to set the balance dynamically
- `prefer[]` DexNames[]
- `receiveGasOnDestination` boolean

## Headers

- `x-request-id` string
- `x-integrator-id` string

## Response `200`

Route API response object

- Route
  - `route` object
    - `estimate` object
      - `fromAmount` string
      - `fromAmountUSD` string
      - `sendAmount` string
      - `toAmount` string
      - `toAmountUSD` string
      - `route` object[]
      - `feeCosts` object[]
      - `gasCosts` object[]
      - `estimatedRouteDuration` number
      - `exchangeRate` string
      - `aggregatePriceImpact` string
    - `params` object
      - `fromChain` string
      - `toChain` string
      - `fromToken` Token
        - `chainId` number
        - `address` string
        - `name` string
        - `symbol` string
        - `logoURI` string
        - `coingeckoId` string
      - `toToken` Token
        - `chainId` number
        - `address` string
        - `name` string
        - `symbol` string
        - `logoURI` string
        - `coingeckoId` string
      - `fromAmount` string
      - `toAddress` string
      - `slippage` number
    - `transactionRequest` object
      - `routeType` string
      - `targetAddress` string
      - `data` string
      - `value` string
      - `gasLimit` string
      - `gasPrice` string
      - `maxFeePerGas` string
      - `maxPriorityFeePerGas` string

## Other responses

- `400` — Invalid request
- `404` — Not found
- `500` — Unkown error

---

[API](https://skmtc.dev/0xsquid/apis/squid-api.md) · [All operations](https://skmtc.dev/0xsquid/apis/squid-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/0xsquid/squid-api/revisions/7d461f4df97e/schema)
