Skip to main content
GET
Get swap quote
Quotes are display-only — always re-quote client-side at sign time. Every request quotes against the current block (responses are never cached).
Quotes are exact-in only: amountWei is always the input amount (ETH wei for buys, token base units for sells). Exact-out is not supported.

Authorizations

x-api-key
string
header
required

API key authentication. Provide your API key as the header value.

Query Parameters

tokenAddress
string
required

Token address. Accepts any casing; normalized to EIP-55 checksum form.

side
enum<string>
required

Quote direction. buy: ETH in, tokens out. sell: tokens in, ETH out.

Available options:
buy,
sell
amountWei
string
required

Input amount as a positive decimal integer string (wei for buys, token base units for sells).

Response

Successfully retrieved swap quote

success
boolean
required
Example:

true

response
object