Trade API
Get Quotes
Best-route quotes for same-chain swaps and cross-chain bridges.
POST
Returns the best available routes for one or more swap/bridge pairs, including recommended provider, priced route, and fees. Transaction calldata is not included - call
/v1/buildTx separately once you’ve picked a route.
Body
Source chain ID for every item in
data.Array of trade requests to quote.
User’s wallet address.
Quote filter:
all (default), best, or fastest.Request gasless-eligible quotes.
Request private/MEV-protected quotes.
Skip gas/output estimation for a faster response.
Allow/deny list of bridge providers:
{ allow?: string[]; deny?: string[] }.Allow/deny list of DEX providers:
{ allow?: string[]; deny?: string[] }.Fine-tune quote collection timing.
Response
The response is an object keyed by pair identifier ({fromChain}_{srcToken}_{toChain}_{destToken}), not wrapped in a data envelope.
Per-pair status, if applicable.
Provider ID of the recommended route.
Provider ID with the best return - use as a fallback route.
Provider ID with the fastest execution (bridge quotes only).
Map keyed by provider ID, each value a full quote.
Map of
chainId → token addresses missing price data.Examples
Last modified on July 14, 2026