v1

latestOpenAPI 3.1.02026-07-228799577.7 KB

Quote and swap in one request

Get quote and build transaction in single request

post/quote-and-swap

Request body

userPublicKeystring required

User's wallet public key

inputMintstring required

Input token mint

outputMintstring required

Output token mint

amountinteger required

Input amount in lamports

slippageBpsstring

Slippage in basis points or 'dynamic'

dexesstring

Comma-separated DEX filter

maxHopsinteger

Maximum routing hops

wrapUnwrapSolboolean

Automatically wrap/unwrap SOL

txVersion'legacy' | 'v0'

Transaction version

priorityFeestring

Priority fee mode or microlamports

feeAccountstring

Platform fee recipient

feeBpsinteger

Platform fee in basis points

feeFromInputboolean

Take fee from input

Response

Successful quote and transaction build

swapTransactionstring required

Base64-encoded transaction

lastValidBlockHeightinteger

Block height until transaction is valid