Get Order
Returns a swap quote for inputMint → outputMint.
Path Parameters
docs-demoFor higher throughput, create your own API key.
Query Parameters
Mint address of the input token.
Mint address of the output token.
Amount to swap in the smallest unit of the input token (lamports for native SOL, base units for SPL tokens). Refers to the input token by default, or to the output token when swapMode is ExactOut.
Public key of the wallet that will sign the transaction. When omitted, the response returns a quote only and transaction is null.
Wallet to receive the output instead of taker (omit to keep it with taker). Expects a wallet address, not a token account. Missing ATAs are created automatically.
How amount is interpreted.
50Slippage tolerance in basis points, 0–10000.
rtse (automatic slippage) is not supported.
Custom priority fee, in lamports. Only used when broadcastFeeType is set; otherwise ignored and the fee is estimated automatically. Added to jitoTipLamports (if set) to form the fee total that broadcastFeeType applies.
Custom Jito tip, in lamports (minimum 1000). Only used when broadcastFeeType is set; otherwise ignored and the fee is estimated automatically. Added to priorityFeeLamports (if set) to form the fee total that broadcastFeeType applies.
How your custom fee (priorityFeeLamports + jitoTipLamports) is applied.
When omitted, or sent without priorityFeeLamports or jitoTipLamports, the fee is estimated automatically.
Comma-separated list of DEX labels to exclude from routing. Labels are case-sensitive (for example, Raydium,Orca+V2,Meteora+DLMM).
Not supported yet; routing uses only metis, so excluding it returns an error.
Wallet that pays transaction costs (fees, Jito tip, token-account rent) for taker; the taker still signs and pays the trade amount. Any public key can be used; no effect if equal to taker. See errorCode for funding failures. Does not change mode.
Integrator fee in basis points (50–255). Must be sent with referralAccount.
Referral account in the referral program. Must be sent with referralFee. The fee is charged in the output token on ExactIn and in the input token on ExactOut, and is paid into that mint’s fee token account under this referral account. That account must already exist.
Responses
200
Quote, plus an unsigned transaction when a funded taker is supplied. Insufficient funding returns 200 with an empty transaction and error fields.