Get swap quote

Get a quote for swapping tokens, including price details and executable transaction data.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use chain slugs such as solana or base; Get supported chains lists chain metadata and swap support. For native SOL, use 11111111111111111111111111111111 as the token address and an integer number of lamports as quantity. Wrapped SOL uses the mint So11111111111111111111111111111111111111112 instead.

quote.routes returns raw input and expected output quantities as integer strings, with a nullable provider-reported min_to_quantity. That minimum is not independently decoded from the transaction or the net wallet change after separate fees.

Solana entries contain svm.instructions and lookup table addresses. Set transaction_format=serialized for an unsigned base64 v0 transaction with blockhash and last_valid_block_height; otherwise resolve the lookup tables and compile before signing. Check requires_jito_bundle before submission.

Use single_transaction_only=true to reject selected routes that require extra steps. svm.marketplace_fee_transfer reports the separate OpenSea fee transfer when available. See Swap tokens for the supported scope, fee semantics and rate-limit guidance.

For self-funded Solana swaps, set compute_unit_limit, compute_unit_price_micro_lamports or jito_tip_lamports to request exact execution settings within the server limits. A positive tip requires bundle submission.

Set swap_provider=jupiter in the query to require Jupiter for a swap with one Solana input and one Solana output. The request fails if Jupiter cannot provide an eligible route.

Query Params
string
required

Chain of the token to swap from

string
required

Contract address of the token to swap from

string
required

Chain of the token to swap to

string
required

Contract address of the token to swap to

string
required

Amount to swap in the smallest unit of the token (e.g. wei for ETH)

string
required

Wallet address executing the swap

double
deprecated

Deprecated: use slippage_bps. Legacy slippage in percentage points (0 to 0.5, 0.15 = 0.15%). Defaults to 0.01 percentage points when neither slippage field is supplied.

string

Recipient address (defaults to sender address)

int64
1 to 1400000

Exact Solana compute unit limit (1 to 1400000), subject to the server priority fee cap. Only self-funded unsigned v0 swaps on Solana with one input and one output are supported. Omitted controls use existing defaults when available; unresolved budgets are rejected. Quoted network fees remain estimates.

string
length ≤ 19
^[0-9]+$

Exact Solana compute unit price in micro-lamports, as a nonnegative decimal integer string. Explicit zero disables the priority fee. Only self-funded unsigned v0 swaps on Solana with one input and one output are supported. Subject to the server priority fee cap. Quoted network fees remain estimates.

string
length ≤ 19
^[0-9]+$

Exact canonical Jito tip in lamports, as a decimal integer string, subject to server tip limits. Omitted uses existing defaults; zero requests no canonical Jito tip and rejects routes requiring a tip or bundle. Requires one self-funded unsigned Solana v0 swap transaction. Positive tips require the caller to sign and submit the returned transaction as a Jito bundle and are incompatible with single_transaction_only.

string
enum

Solana output format: instructions (default), serialized (unsigned base64 v0), or serialized_v1 (unsigned base64 v1). Use serialized_v1 only with a signer and submission endpoint that support v1, for same-chain Solana swaps without compute unit or Jito tip overrides. Serialized modes include blockhash expiry and support only wallet-funded transactions requiring the sender signature alone. Unsupported v1 requests fail without downgrading. EVM transactions are unchanged with instructions or serialized.

Allowed:
boolean
Defaults to false

Require the selected route to use one same-chain transaction without additional signing steps, bundles, or relayer fulfillment. Returns SINGLE_TRANSACTION_UNAVAILABLE when unsupported; does not retry other routes.

string
enum

Require Jupiter as the router for a one-to-one same-chain Solana swap. Normal provider eligibility still applies; unavailable routes fail without another router. This does not constrain Jupiter's downstream venues or program IDs.

Allowed:
int32
0 to 5000

Requested slippage tolerance in basis points (0 to 5000, 50 = 0.5%). Provider limits and availability apply. Use only one slippage field.

Responses

500

Internal server error. Please open a support ticket so OpenSea can investigate.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*