Skip to main content
POST
Quote and swap in one request

Cuerpo

application/json
userPublicKey
string
requerido

User's wallet public key

inputMint
string
requerido

Input token mint

outputMint
string
requerido

Output token mint

amount
integer
requerido

Input amount in lamports

slippageBps
string

Slippage in basis points or 'dynamic'

dexes
string

Comma-separated DEX filter

maxHops
integer

Maximum routing hops

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
priorityFee
string

Priority fee mode or microlamports

feeAccount
string

Platform fee recipient

feeBps
integer

Platform fee in basis points

feeFromInput
boolean
predeterminado:false

Take fee from input

Respuesta

Successful quote and transaction build

quote
object
requerido
swapTransaction
string
requerido

Base64-encoded transaction

lastValidBlockHeight
integer

Block height until transaction is valid