Quick start
Fetch a SUI-to-USDC quote with a public read-only request.
Request a quote
This request asks for a route from 0.1 SUI to native USDC on Sui. SUI uses nine decimals, so the input amount is 100000000 base units. It requests a quote and does not sign or submit a transaction.
curl --get 'https://open-aggregator-api.naviprotocol.io/find_routes' \
--data-urlencode 'from=0x2::sui::SUI' \
--data-urlencode 'target=0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC' \
--data-urlencode 'amount=100000000' \
--data-urlencode 'by_amount_in=true' \
--data-urlencode 'depth=3' \
--data-urlencode 'version=18'Inspect the result
| Field | What to check |
|---|---|
data.amount_in | Input amount in the sell token's base units |
data.amount_out | Quoted output in the buy token's base units |
data.routes | Route legs and pool paths for the quoted swap |
data.from_token.decimals | Input-token decimal precision |
data.to_token.decimals | Output-token decimal precision |
Quotes change with liquidity and market conditions. An empty route or error response should be handled before building a transaction. See the quote reference for the full source response and request parameters.