fetchQuote returns an array of routes for a pair. By default at most two: the quickest first, then the best return. When one route is both, you get a single item.
Parameters
As of v15,
fetchQuote uses HTTP POST by default. The GET endpoint still works, but some options are POST-only, including extraInstructions and multi-wallet referrers.
Reading the response
These are the fields that matter in a confirmation screen.Gas on destination ceilings
A request above the ceiling fails with
GAS_DROP_TOO_HIGH. On Solana a non-zero gasDrop must be at least 0.0009 SOL, or the request fails with GAS_DROP_TOO_LOW. Each quote also returns maxUserGasDrop, which can be lower than the ceiling on small swaps.
See gas on destination.
Next steps
Executing Swaps
Build and send the transaction on EVM, Solana and Sui.
Guaranteed Price
What
swiftAuctionMode tells you and when the amount is locked.Quote API
The underlying endpoint, if you would rather call it directly.