{"uid":"cap_IeYW9i7Zw0z5mawb_wUzK","slug":"agent402-solana-swap-quote-b1ba5499","name":"Agent402 Solana Swap Quote","description":"Executable swap quote on Solana from Jupiter's aggregator: input and output mint, amount in base units, slippage in bps - returns out amount, minimum out after slippage, price impact percent, the routed DEX labels in hop order with split percentages, the USD value of the swap and the context slot. A real multi-hop route across Solana DEX liquidity, so the number reflects depth, not a spot price. Quote only - nothing is signed or sent. Keyless.","url":"https://agent402.tools/api/sol-swap-quote","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"string","description":"Input amount in base units (integer string; 1 SOL = 1000000000 lamports, 1 USDC = 1000000)."},"inputMint":{"type":"string","description":"Base58 mint you sell."},"outputMint":{"type":"string","description":"Base58 mint you buy."},"slippageBps":{"type":"number","description":"Slippage tolerance in basis points (0-5000, default 50 = 0.5%)."}}},"responseSchema":{"type":"json","example":{"hops":2,"route":[{"label":"BisonFi","percent":100,"inAmount":"1000000000","inputMint":"So11111111111111111111111111111111111111112","outAmount":"93720054","outputMint":"Es9v..."},{"label":"SolFi V2","percent":100,"inAmount":"93720054","inputMint":"Es9v...","outAmount":"93708783","outputMint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"}],"source":"jupiter","inAmount":"1000000000","swapMode":"ExactIn","fetchedAt":"2026-08-22T12:00:00.000Z","inputMint":"So11111111111111111111111111111111111111112","outAmount":"93708783","outputMint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","contextSlot":440919041,"slippageBps":50,"minOutAmount":"93240240","swapUsdValue":93.7,"priceImpactPct":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bsGkcgQeAe3Z7WGLFdIu-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a pay-per-call DEX swap quote for a Solana token pair, including route hops, output amount, price impact, and minimum received amount.","exampleAgentPrompt":"Get me a swap quote for 1 SOL (1000000000 lamports) to USDC on Solana with a 0.5% slippage tolerance — show me the route hops and minimum amount I'd receive.","exampleUseCases":[{"title":"Pre-trade price check for SOL-USDC","prompt":"Before I execute anything, can you get me a quote for swapping 2 SOL to USDC on Solana? I want to see the route, expected output, and price impact so I can decide if now is a good time."},{"title":"Arbitrage route discovery","prompt":"I'm looking at swapping 500 USDC worth of JitoSOL back to USDC — can you pull the best multi-hop route and tell me the minimum I'd receive with 1% slippage tolerance?"},{"title":"Wallet rebalancing estimation","prompt":"My agent needs to rebalance: get a swap quote to convert 5000000 USDC base units to SOL on Solana, using 50 basis points slippage, and show me all the liquidity hops it would take."}],"resultDescription":"Returns a JSON object containing: the number of route hops, an ordered array of hop details (DEX label, percent of liquidity, input/output mints and amounts), total input and output amounts in base units, swap mode, price impact percentage, minimum output amount after slippage, estimated USD value of the swap, the Jupiter context slot at quote time, and the fetch timestamp.","failureModes":["Invalid or non-existent mint address returns an error or empty route","Amount of zero or non-integer string causes validation failure","slippageBps outside 0-5000 range rejected","Illiquid token pair with no available route returns no hops","Payment failure (insufficient USDC balance for $0.003 per-call fee) blocks request","Network congestion on Solana may cause stale context slot or timeout"],"whenToPreferThis":"Use this endpoint when you need a real-time Solana DEX swap quote without API keys or signup — the x402 micropayment model means any agent with a wallet can call it instantly at $0.003 per call. Prefer this over building your own Jupiter integration when you want a managed, pay-per-call quote that includes multi-hop routing, price impact, and minimum output in one response. Not suitable for actually executing the swap (quote only) or for non-Solana chains.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:49:55.436Z","isFirstParty":false}