Get a swap quote with raw instructions for building custom transactions
Get API key via https://developers.jup.ag/portal
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.
rtse Quoting 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 <= 300SOL tip amount in lamports. Adds a tip instruction for use with /submit. The tip payer is the taker (or payer if specified).
Percentile of compute unit price to use. Named levels: "medium" (25th), "high" (50th), "veryHigh" (75th), or a number 0-10000 in basis points.
medium, high, veryHigh Quote 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