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
x-navi-token
String (optional)
Serves the same function as apiKey
in sdk, used to authenticate user requests.
Body
from
String
The token address you are swapping from (e.g., Sui-0x2::sui::SUI
).
target
String
The token address you want to swap to (e.g., NAVX-0xa99b8952d4f7d947ea77fe0ecdcc9e5fc0bcab2841d6e2a5aa00c3044e5544b5::navx::NAVX
).
amount
String
The amount of the fromCoinAddress
token to swap, specified with decimals (e.g., 1000000000
).
by_amount_in
Boolean (optional)
Specifies whether the provided amount is the input amount for the swap.
Please only use True
depth
String (optional)
The maximum number of hops allowed in the route search, balancing performance and accuracy.
Default: 3
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., ['cetus', 'turbos']
)
Supported DEXs:
Cetus
Turbos
KriyaV2
KriyaV3
Aftermath
Deepbook
Sample Request
Sample Response
Last updated