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). See supported chains.Token address to sell, or
"native" for the chain’s native token.Token address to buy, or
"native" for the chain’s native token. Must be different from input_token.Amount in base units (e.g., wei for ETH).
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

