jupiter-swap
Jupiter swap
Produce a Jupiter quote or a Solana swap outcome. Choose the v2 /order path for an assembled transaction or /build for custom instructions; their routing and landing responsibilities differ.
Quote without wallet authority
Collect input/output mint addresses, mint decimals, raw input amount, desired recipient and optional public taker. Use reads. Current docs allow quote-only /order without a key or taker, at lower limits. An API key can raise limits; discovering the docs MCP does not establish a trading connection.
Without taker, expect a quote and null transaction. Adding taker can construct an assembled transaction. Inspect router, fee basis, price impact, input/output amounts, slippage, request ID and expiry information. Track SOL gas/rent and any extra payer separately from SPL token spend.
Inspect the transaction boundary
For /order + /execute, keep the returned transaction immutable. Resolve all lookup-table addresses, instructions, writable accounts, token mints, destination accounts, signers, compute budget and priority fees before a wallet handoff. Do not append instructions to an RFQ/managed transaction. If custom composition is needed, choose /build and re-evaluate its route and self-managed landing path.
Signing, /execute and transaction submission are financial actions. Return unsigned terms for planning. A quote refresh, changed payer, mint or amount invalidates the previous transaction/approval review. Do not insert a referral fee.
Reconcile managed landing
Preserve request ID and original transaction signature. Inspect execution response and Solana confirmation/transaction meta, including errors and pre/post token balances at the exact destination token account. Wallet SOL changes include fees/rent and are not the swap output. A signature or HTTP success alone is insufficient.