v1

latestOpenAPI 3.1.02026-07-2619047.9 KB

Swap Quote

Returns a swap quote between two SPL mints. The quote response can be passed as-is into POST /v1/swap/swap to build the swap transaction.

get/v1/swap/quote

Query parameters

inputMintstring required
Example:So11111111111111111111111111111111111111112

Input token mint address.

outputMintstring required
Example:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v

Output token mint address.

amountstring required
Example:1000000

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

slippageBpsinteger
Example:50

Slippage threshold in basis points.

swapMode'ExactIn' | 'ExactOut'
Example:ExactIn

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

dexesstring
Example:Raydium,Orca+V2

Optional comma-separated list of DEX labels to include.

excludeDexesstring
Example:Meteora+DLMM

Optional comma-separated list of DEX labels to exclude.

restrictIntermediateTokensboolean
Example:true

Restrict intermediate tokens to a more stable set.

onlyDirectRoutesboolean

Limit routing to a single hop.

asLegacyTransactionboolean

Request a legacy transaction-compatible route.

platformFeeBpsinteger
Example:20

Optional platform fee in basis points.

maxAccountsinteger
Example:64

Approximate maximum account budget for the route.

instructionVersion'V1' | 'V2'
Example:V1

Instruction format to target.

dynamicSlippageboolean

Keep for compatibility with upstream quote parameters.

forJitoBundleboolean

Exclude routes that are incompatible with Jito bundles.

supportDynamicIntermediateTokensboolean

Allow dynamic selection of intermediate tokens.

Response

Swap quote

inputMintstring required
inAmountstring required
outputMintstring required
outAmountstring required
otherAmountThresholdstring required
swapMode'ExactIn' | 'ExactOut' required
slippageBpsinteger required
priceImpactPctstring required
instructionVersion'V1' | 'V2' | 'null' nullable
platformFeeobject nullable
contextSlotinteger
timeTakennumber