{"uid":"cap_jEk8oUZ0fWOTyqGWjHUZp","slug":"silverback-x402-onrender-com-75c498bc","name":"Silverback Base Chain Swap Quote","description":"Get optimal swap route on Base chain (EVM only — for Solana tokens use /api/v1/jupiter-quote)","url":"https://silverback-x402.onrender.com/api/v1/swap-quote","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"tokenIn":{"type":"string","description":"Input token address (0x format) or symbol (WETH, USDC)"},"amountIn":{"type":"string","description":"Amount to swap (human readable, e.g. '1.5')"},"tokenOut":{"type":"string","description":"Output token address (0x format) or symbol"}}},"responseSchema":null,"example":{"request":{"tokenIn":"USDC","amountIn":"1.5","tokenOut":"WETH"},"response":{"data":{"fee":"0.00375 USDC","chain":"Base","route":["PancakeSwap_Infinity_CL"],"router":"0x0000000000001ff3684f28c67538d4d072c22734","tokenIn":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","amountIn":"1.5","tokenOut":"0x4200000000000000000000000000000000000006","amountOut":"0.000742644651743592","timestamp":"2026-05-29T22:41:58.491Z","aggregator":"0x Protocol","priceImpact":"0%","estimatedGas":"359727","minAmountOut":"0.0007352182052226","liquidityAvailable":true},"success":true}},"exampleRequest":{"tokenIn":"USDC","amountIn":"1.5","tokenOut":"WETH"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2YmV02uiGxA5pgC3dZkoV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the optimal EVM swap route on Base chain for a given token pair and input amount using 0x protocol","exampleAgentPrompt":"What's the best swap route on Base for trading 1.5 USDC into WETH right now — what's the optimal path and how much WETH would I get back?","exampleUseCases":[{"title":"Check ETH to USDC exchange rate","prompt":"I want to swap 0.5 ETH into USDC on Base — what's the best route I can get right now and how much USDC would land in my wallet after fees?"},{"title":"Pre-trade price impact analysis","prompt":"Before I make a big trade, can you check what the price impact would be if I swapped 50,000 USDC into DAI on Base? I want to see the routing path and whether it's worth splitting the order."},{"title":"Compare token swap output amounts","prompt":"How much CBBTC would I get if I swapped 1,000 USDC for it on Base right now? Show me the DEX routing path and gas cost estimate so I can decide if it's a good time to execute."}],"resultDescription":"Returns the optimal swap route on Base chain including expected output token amount, price impact, routing path through DEX liquidity pools, and gas cost estimates for a given input token, output token, and input amount.","failureModes":["Token address not found or invalid — returns error if tokenIn/tokenOut are unrecognized","Insufficient liquidity for the pair — no route found","Amount too small or too large for available liquidity","Invalid token format (non-EVM address used for Solana token — use /api/v1/jupiter-quote instead)","Payment failure — $0.01 USDC x402 payment required per call","Network timeout from Base chain RPC or 0x API"],"whenToPreferThis":"Use this endpoint when you need an optimal swap quote specifically on Base chain (EVM) for ERC-20 tokens. It is distinct from Jupiter-based Solana quotes and is ideal for pre-trade analysis, price checking, or building swap UIs on Base. Prefer this over generic price feeds when you need routing and path optimization, not just a spot price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T15:25:21.089Z","isFirstParty":false}