Query Parameters
Base58-encoded input mint address
Base58-encoded output mint address
Input amount as a scaled integer. For example, 1 SOL is 1000000000.
x >= 0Max allowed slippage for the swap. Allowed values are:
- a u16 which specifies the maximum allowed slippage in basis points
- the string value "auto", where the server determines the maximum allowed slippage automatically Slippage tolerance specified in basis points
x >= 0Comma-separated list of DEXes to include. If not specified, all DEXes will be included.
Comma-separated list of DEXes to exclude. If not specified, all DEXes will be included.
Optional platform fee in basis points. This should only be nonzero if the swap will collect the platform fee. The swap must specify a valid fee account and that fee account must be able to collect the fee mint at execution time.
x >= 0Optional platform fee mode. If not specified, the default is outputMint.
outputMint, inputMint This should be specified as true if and only if the quote will be used for a sponsored swap. If true, then the quote will account for any additional token 2022 transfer fees that apply to the input and output mints for a sponsored swap.
This should be specified as true if and only if the quote will be used for a destination token account swap. If true, then the quote will account for any additional token 2022 transfer fees that apply to the output mint for a destination token account swap.
If true, only use single-leg routes
If specified, the route will be limited to the specified number of legs. Ignored if
only_direct_routes is true.
x >= 0Response
Imperative swap quote
Slot at which the request was evaluated
x >= 0Maximum input amount as a scaled integer. For example, 1 SOL is 1000000000.
Base58-encoded input mint address
Same as other_amount_threshold
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.
Expected output amount after all fees as a scaled integer. For example, 1 SOL is 1000000000.
Base58-encoded output mint address
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.
Route that the swap will take
- Option 1
- Option 2
Max allowed slippage % in basis points
x >= 0Transfer fee amount that was applied to the quote, if any
Platform fee that was applied to the quote, if any
Identifier for the request
Compute units consumed by quote simulation
x >= 0