Skip to main content
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

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.