Skip to main content
POST
Build swap instructions

Cuerpo

application/json
userPublicKey
string
requerido

User's wallet public key

quoteResponse
object
requerido
wrapUnwrapSol
boolean
predeterminado:true

Automatically wrap/unwrap SOL

txVersion
enum<string>
predeterminado:V0

Transaction version. Accepted values are case-sensitive: V0 or LEGACY (not lowercase v0/legacy).

Opciones disponibles:
V0,
LEGACY
computeUnitPriceMicroLamports
integer

Priority fee in microlamports

computeUnitLimit
integer

Compute unit limit

priorityFee
string

Priority fee mode or microlamports

maxPriorityFee
integer

Maximum priority fee cap

tipAccount
string

Tip account pubkey

tipLamports
integer

Tip amount in lamports

feeAccount
string

Platform fee recipient

feeBps
integer

Platform fee in basis points

feeFromInput
boolean
predeterminado:false

Take fee from input

chargeBps
integer

Extra charge on positive slippage

Respuesta

Successful instruction build

tokenLedgerInstruction
object
computeBudgetInstructions
object[]
setupInstructions
object[]
swapInstruction
object
cleanupInstruction
object
addressLookupTableAddresses
string[]