Get a swap quote with raw instructions for building custom transactions
Get API key via https://portal.jup.ag
The mint address of the input token
The mint address of the output token
The amount to swap in the smallest unit of the input token
Public key of the user initiating the swap.
Slippage tolerance in basis points. Defaults to 50.
0 <= x <= 10000Quoting mode. "fast" trades quote optimality for reduced latency.
fast Platform fee in basis points. If positive, feeAccount is required.
0 <= x <= 10000Token account to collect platform fees. Required if platformFeeBps is positive.
Maximum number of accounts for the swap route. Defaults to 64.
1 <= x <= 64Account that pays transaction fees and rent. Defaults to taker when not passed in.
Whether to wrap/unwrap SOL. Defaults to true.
Number of slots until the blockhash expires. Defaults to 150.
1 <= x <= 300Quote with raw swap instructions
Minimum output amount after slippage
Compute unit price instruction (does not include compute unit limit)
Pre-swap setup instructions (e.g. create ATAs)
Post-swap cleanup instruction
Address lookup table mappings for v0 transactions