View the full API reference for the quote endpoint.
Usage
- REST API
To get a swap quote via REST API, make a
POST request to:Body
Chain identifier in CAIP-2 format (e.g.,
eip155:8453 for Base, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp for Solana mainnet). See supported chains.Token address to sell, or
"native" for the chain’s native token. Use ERC-20 contract addresses for EVM chains or SPL token mint addresses for Solana.Token address to buy, or
"native" for the chain’s native token. Must be different from input_token. Use ERC-20 contract addresses for EVM chains or SPL token mint addresses for Solana.Amount in base units (e.g., wei for ETH, lamports for SOL).
Whether
amount refers to the input or output token. Defaults to exact_input.Maximum slippage tolerance in basis points (e.g.,
50 for 0.5%). If omitted, auto-slippage is used.Response
The response includes the following fields:Chain identifier.
Token address being sold.
Token address being bought.
Amount of input token in base units.
Estimated amount of output token in base units, after fees.
Minimum output amount accounting for slippage, in base units. Your app can use this value to verify the swap terms before executing.
Estimated gas cost in base units of the native token.
Example
Example response

