GET
/
quote

Query Parameters

inputMint
string
required

Base58-encoded input mint address

outputMint
string
required

Base58-encoded output mint address

amount
integer
required

Input amount as a scaled integer. For example, 1 SOL is 1000000000.

Required range: x > 0
slippageBps
integer

Max allowed slippage % in basis points

Required range: x > 0
dexes
string

Comma-separated list of DEXes to include. If not specified, all DEXes will be included.

excludeDexes
string

Comma-separated list of DEXes to exclude. If not specified, all DEXes will be included.

platformFeeBps
integer

Optional platform fee in basis points. This is taken out of the output of the swap.

Required range: x > 0
onlyDirectRoutes
boolean

If true, only use single-leg routes

Response

200 - application/json
inAmount
string
required

Maximum input amount as a scaled integer. For example, 1 SOL is 1000000000.

inputMint
string
required

Base58-encoded input mint address

minOutAmount
string
required

Same as other_amount_threshold

otherAmountThreshold
string
required

Minimum output amount after all fees as a scaled integer. If the swap transaction doesn't produce at least this amount of the output token, the transaction will fail.

outAmount
string
required

Expected output amount after all fees as a scaled integer. For example, 1 SOL is 1000000000.

outputMint
string
required

Base58-encoded output mint address

priceImpactPct
string
required

Price impact of the swap. This is an estimate of the percentage difference between the expected price for the swap and the price for the same swap with the smallest input amount possible. For example, "0.01" means 1% price impact.

routePlan
object[]
required

Route that the swap will take

slippageBps
integer
required

Max allowed slippage % in basis points

Required range: x > 0
platformFee
object | null

Platform fee that was applied to the quote, if any