Execute a token swap

Get executable transactions for token-to-token swaps. Supports same-chain and cross-chain swaps with multiple from/to assets.

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

Request body for executing a token swap

string
required

Wallet address executing the swap

from_assets
array of objects
required

Tokens to swap from (at least one required)

from_assets*
string | null

Recipient address (defaults to sender address)

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.

double | null

Slippage tolerance as a decimal (0.0 to 0.5, default: 0.01)

to_assets
array of objects
required

Tokens to swap to (at least one required)

to_assets*
string
enum
Defaults to instructions

Solana output format. serialized returns an unsigned base64 v0 transaction with blockhash expiry. Only wallet-funded transactions requiring the sender signature alone are supported; unsupported transactions fail without an instructions-only fallback. EVM transactions are unchanged.

Allowed:
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:
*/*