3️⃣Aggregator API
At Navi Protocol, we provide both SDK and API to empower users with seamless access to our powerful NAVI Aggregator for fetching token swap quotes.
Get Quote
Base URL:
Get
/find_routes
The find_routes
API endpoint identifies the optimal routes for swapping one token (from
) to another (target
) based on the specified amount and additional parameters. It determines the best swap paths by considering factors such as route depth and the input amount type.
Headers
Name | Value | Description |
---|---|---|
x-navi-token | String (optional) | Serves the same function as |
Body
Name | Type | Description |
---|---|---|
from | String | The token address you are swapping from (e.g., |
target | String | The token address you want to swap to (e.g., |
amount | String | The amount of the |
by_amount_in | Boolean (optional) | Specifies whether the provided amount is the input amount for the swap.
Please only use |
depth | String (optional) | The maximum number of hops allowed in the route search, balancing performance and accuracy.
Default: |
dexList | Enum List (optional) | A comma-separated list of decentralized exchanges (DEXs) to include for routing the swap. If left empty, all available DEXs will be considered.
(e.g., Supported DEXs:
|
Sample Request
Sample Response
Last updated