Get Route

Returns detailed routing information for a token swap between a specified token pair. It provides a breakdown of the swap path, including each liquidity source involved, the corresponding swap details such as input/output amounts, and any associated fees, enabling users to assess and choose the optimal route for their trade.

💡

Compute Unit Value: 30 (Fixed)

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum

The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.

Allowed:
string
required

Array of token contract addresses for the source and destination tokens. Provide [srcTokenAddress, dstTokenAddress].

string
required

Amount of the input token to provide, specified in the token's smallest denomination (base units). Do not send human-readable decimal values. Examples: to swap 1 WETH (18 decimals), use "1000000000000000000"; to swap 1 USDC (6 decimals), use "1000000".

string

A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json