get_solana_swap_quote
Fetch a Jupiter v6 swap quote to preview the route, expected output, slippage, and price impact before committing to a transaction on Solana.
Instructions
READ-ONLY — fetch a Jupiter v6 swap quote for previewing the route, expected output, slippage, and price impact before committing to a transaction. Parallel to EVM's get_swap_quote (which uses LiFi). Calls the Jupiter aggregator at lite-api.jup.ag/swap/v1/quote, returns the opaque quoteResponse (which must be passed back verbatim to prepare_solana_swap) plus human-facing fields (symbols, amounts with decimals applied, route labels like 'Meteora DLMM' / 'Raydium CLMM', price impact %). Pass raw integer amounts in base units (e.g., '1000000' for 1 USDC). For native SOL, use the wrapped-SOL mint So11111111111111111111111111111111111111112 — Jupiter auto-wraps/unwraps at swap time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputMint | Yes | Base58 mint address of the token being sold. For native SOL use the wrapped-SOL mint So11111111111111111111111111111111111111112 — Jupiter auto-wraps/unwraps. | |
| outputMint | Yes | Base58 mint address of the token being bought. Same wrapped-SOL convention as inputMint. | |
| amount | Yes | Raw integer amount in base units (NOT decimal-adjusted). For ExactIn swaps this is how much inputMint to sell; for ExactOut it's how much outputMint to buy. Example: to sell 1 USDC (6 decimals), pass '1000000'. | |
| slippageBps | No | Slippage tolerance in basis points. 50 bps = 0.5%. Default 50. | |
| swapMode | No | ExactIn: sell exactly `amount` inputMint, receive at least minOutput. ExactOut: buy exactly `amount` outputMint, sell at most maxInput. | ExactIn |
| dexes | No | Restrict Jupiter routing to a specific set of DEXes. Common values: "Raydium", "Orca V2", "Meteora", "Meteora DLMM", "Phoenix", "Lifinity V2", "Whirlpool". When the user names a DEX ("via Raydium"), pass it here — without a filter, Jupiter silently picks the best-output route regardless. Multiple entries OR'd. If no route exists the call errors clearly; agent should offer to retry without filter. | |
| excludeDexes | No | Blocklist version of `dexes` — DEXes Jupiter must avoid. Use when the user says "not via Raydium" or "avoid Orca". Independent of `dexes`: pass both to constrain to allowlist minus blocklist. |