{"uid":"cap_fuOBAoBKOdoIfRjE8xWmC","slug":"base-dex-swap-quote-b10543ff","name":"Base DEX Swap Quote","description":"Slippage estimate, swap quote, and best DEX price on Base - compares Uniswap v2, Uniswap v3, and Aerodrome on-chain via Multicall3, returns amount received, chosen path, and price impact.","url":"https://x402.agentindex.world/base/quote?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"token_in":{"type":"string","title":"Token In"},"amount_in":{"type":"integer","title":"Amount In","exclusiveMinimum":0},"token_out":{"type":"string","title":"Token Out"}}},"responseSchema":null,"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_QmKbHQiPdg-ED5EXllBVV","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 best-price DEX swap quote on Base by comparing Uniswap v2, Uniswap v3, and Aerodrome via on-chain Multicall3, including amount received, optimal path, and price impact.","exampleAgentPrompt":"What's the best swap quote for converting 1000000 USDC (token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) to WETH (token 0x4200000000000000000000000000000000000006) on Base — compare Uniswap v2, Uniswap v3, and Aerodrome and tell me how much I'd receive and the price impact?","exampleUseCases":[{"title":"Pre-trade slippage check for large swap","prompt":"Before I execute this trade, can you quote me the expected output and price impact for swapping 5000000 USDC to WETH on Base, checking Uniswap v2, Uniswap v3, and Aerodrome?"},{"title":"Best DEX route finder for DeFi bot","prompt":"I want to swap 250000 USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) for cbBTC on Base — which DEX gives the best rate and what path should I use?"},{"title":"Token arbitrage opportunity scan","prompt":"Get me quotes for swapping 1000000 WETH to USDC on Base across Uniswap v2, v3, and Aerodrome so I can see if there's a price discrepancy worth acting on."}],"resultDescription":"Returns the estimated amount of token_out received, the selected DEX and swap path that yields the best price, the price impact percentage, and a slippage estimate — all derived from on-chain data via Multicall3 aggregating Uniswap v2, Uniswap v3, and Aerodrome pools on Base.","failureModes":["Invalid or unsupported token address returns an error or zero quote","No liquidity path found between the two tokens across all three DEXes","amount_in of zero or negative rejected by exclusiveMinimum constraint","RPC or Multicall3 on-chain call failure causing a timeout or 500 error","Token pair only exists on one DEX, limiting comparison accuracy"],"whenToPreferThis":"Choose this endpoint when you need a real-time, on-chain best-price quote for a token swap on Base that compares multiple DEX venues (Uniswap v2, Uniswap v3, Aerodrome) in a single call. It is ideal for pre-trade analysis, slippage estimation, and routing decisions before submitting a transaction. Prefer it over generic price APIs when you need actual path routing and price impact data rather than just an oracle spot price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:35:18.224Z","isFirstParty":false,"canonicalSlug":"base-dex-swap-quote-b10543ff"}