Skip to main content
GET
Swap Quote

Query Parameters

inputMint
string
required

Input token mint address.

Example:

"So11111111111111111111111111111111111111112"

outputMint
string
required

Output token mint address.

Example:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

amount
string
required

Raw amount to swap before decimals are applied, as an unsigned integer string.

Pattern: ^\d+$
Example:

"1000000"

slippageBps
integer

Slippage threshold in basis points.

Required range: x >= 0
Example:

50

swapMode
enum<string>

Use ExactIn for fixed input amount or ExactOut for fixed output amount.

Available options:
ExactIn,
ExactOut
Example:

"ExactIn"

dexes
string

Optional comma-separated list of DEX labels to include.

Example:

"Raydium,Orca+V2"

excludeDexes
string

Optional comma-separated list of DEX labels to exclude.

Example:

"Meteora+DLMM"

restrictIntermediateTokens
boolean

Restrict intermediate tokens to a more stable set.

Example:

true

onlyDirectRoutes
boolean

Limit routing to a single hop.

Example:

false

asLegacyTransaction
boolean

Request a legacy transaction-compatible route.

Example:

false

platformFeeBps
integer

Optional platform fee in basis points.

Required range: x >= 0
Example:

20

maxAccounts
integer

Approximate maximum account budget for the route.

Required range: x >= 0
Example:

64

instructionVersion
enum<string>

Instruction format to target.

Available options:
V1,
V2
Example:

"V1"

dynamicSlippage
boolean

Keep for compatibility with upstream quote parameters.

Example:

false

forJitoBundle
boolean

Exclude routes that are incompatible with Jito bundles.

Example:

false

supportDynamicIntermediateTokens
boolean

Allow dynamic selection of intermediate tokens.

Example:

false

Response

Swap quote

inputMint
string
required
inAmount
string
required
outputMint
string
required
outAmount
string
required
otherAmountThreshold
string
required
swapMode
enum<string>
required
Available options:
ExactIn,
ExactOut
slippageBps
integer
required
Required range: x >= 0
priceImpactPct
string
required
routePlan
object[]
required
instructionVersion
enum<string> | null
Available options:
V1,
V2,
null
platformFee
object | null
contextSlot
integer
Required range: x >= 0
timeTaken
number