jupiter_smartSwap
Fetches a quote and builds swap instructions in a single call. Provide input and output mints, amount, and wallet address to receive quote, instructions, and summary for assembling a swap transaction.
Instructions
Smart Swap — all-in-one compound tool that fetches a quote and builds swap instructions in a single call. Provide input/output mints, amount, and wallet address to get back a quote, individual swap instructions, and a human-readable summary. The returned instructions can be assembled into a transaction and signed. This is the recommended entry-point for AI agents preparing a swap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Raw token amount to swap (in smallest unit, no decimals) | |
| swapMode | No | Swap mode (default: ExactIn) | |
| inputMint | Yes | Source token mint address | |
| feeAccount | No | Solana wallet public key (base58) | |
| outputMint | Yes | Destination token mint address | |
| maxAccounts | No | Max accounts in transaction (default: 64) | |
| slippageBps | No | Slippage tolerance in bps (e.g. 50 = 0.5%) | |
| userPublicKey | Yes | Wallet public key that will sign the transaction | |
| platformFeeBps | No | Platform fee in bps for referral revenue | |
| dynamicSlippage | No | Enable dynamic slippage for better execution | |
| onlyDirectRoutes | No | Restrict to single-hop routes for lower latency | |
| wrapAndUnwrapSol | No | Auto wrap/unwrap SOL (default: true) | |
| asLegacyTransaction | No | Return a legacy transaction instead of v0 | |
| destinationTokenAccount | No | Solana wallet public key (base58) | |
| dynamicComputeUnitLimit | No | Use dynamic compute unit limit based on simulation | |
| restrictIntermediateTokens | No | Restrict intermediate tokens to reduce risk | |
| computeUnitPriceMicroLamports | No | Priority fee in micro-lamports per compute unit |