Swap

do swap on solana chain
swapInfo comes from the response of GET /v1/sol/quote
set useSolanaV1 to true to get a Solana V1 transaction

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

request body

commission
object

validate: optional
commission

integer

validate: optional
compute unit limit
if not set, a v0 transaction uses the runtime default, and a V1 transaction (useSolanaV1) declares the same default limit.

boolean
Defaults to false

validate: optional
disable simulate

string
string
posSlippage
object

validate: optional
positive slippage

string

validate: optional
total prioritization fee in lamports
with useSolanaV1, it is written into the V1 transaction as its total priority fee, even if computeUnitLimit is not set. For a v0 transaction, it is converted to a price per compute unit and only takes effect when computeUnitLimit is also set.

boolean
Defaults to false

validate: optional
show simulate logs

integer

validate: required
slippage in bps, e.g. 100 means 1%, 85 means 0.85%

swapInfo
object

validate: required
swap info

boolean
Defaults to false

validate: optional
return a Solana V1 transaction (SIMD-0385) in swapTransaction instead of a v0 transaction. A V1 transaction does not use address lookup tables, and carries the compute unit limit, priority fee and loaded accounts data size limit as transaction fields instead of ComputeBudget instructions.
Around November 20, 2026, all Solana swaps will switch to V1: this parameter will then have no effect, and V1 transactions will be returned even if it is not set.

string

validate: required
user address in base58

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json