{"uid":"cap__W_96bOoGg5RpI60ZcE3v","slug":"dexswap-quote-base-dex-swap-calldata-8a00ea2e","name":"DexSwap Quote — Base DEX Swap Calldata","description":"Non-custodial swap calldata for Base: give tokenIn, tokenOut, raw amountIn, slippage and recipient; we read Aerodrome and Uniswap V3 on-chain state, pick the max-output route, and return ready-to-sign transaction calldata plus the ERC-20 approval, amountOutMin, price impact and the venues compared. You sign with your own wallet — we never hold or move funds.","url":"https://payai.agentstools.dev/swap/quote?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["tokenIn","tokenOut","amountIn","recipient"],"properties":{"tokenIn":{"type":"string","description":"Sell token: a supported symbol (WETH, USDC, AERO, ...) or a 0x ERC-20 address on Base."},"amountIn":{"type":"string","description":"Sell amount in RAW atomic units of tokenIn (e.g. 1 WETH = 1000000000000000000). Integer as string."},"tokenOut":{"type":"string","description":"Buy token: a supported symbol or a 0x ERC-20 address on Base."},"recipient":{"type":"string","description":"0x address that receives tokenOut (baked into the calldata)."},"slippageBps":{"type":"integer","description":"Max slippage in basis points (50 = 0.5%). Default 50, max 5000."},"deadlineSeconds":{"type":"integer","description":"Seconds from now until the swap deadline. Default 600."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_aigT9k8KvaZ4weocumvKk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns ready-to-sign swap transaction calldata for Base by comparing Aerodrome and Uniswap V3 routes and selecting the best output, along with ERC-20 approval data, amountOutMin, and price impact.","exampleAgentPrompt":"I want to swap 1 WETH (1000000000000000000 raw units) for USDC on Base — find the best route between Aerodrome and Uniswap V3, use 50 bps slippage, and give me the ready-to-sign calldata with the approval for my wallet 0xAbCd...1234.","exampleUseCases":null,"resultDescription":"Returns ready-to-sign transaction calldata for the swap, ERC-20 approval calldata, amountOutMin, price impact percentage, and a list of venues (Aerodrome, Uniswap V3) compared with their quoted outputs — all pre-formatted for direct submission to the Base network from the recipient's own wallet.","failureModes":["Unsupported token symbol or unrecognized ERC-20 address returns an error","amountIn of zero or non-integer string causes validation failure","No liquidity available for the requested pair returns empty or error route","Slippage above 5000 bps rejected","Invalid or malformed recipient address returns validation error","On-chain RPC timeout causes transient 5xx failure"],"whenToPreferThis":"Use this endpoint when you need non-custodial, ready-to-sign swap calldata on Base that automatically compares Aerodrome and Uniswap V3 liquidity in a single call, without routing through a centralized exchange or giving up control of funds. Prefer this over generic aggregators when operating specifically on Base and needing both the approval calldata and swap calldata bundled with price impact data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:42:40.862Z","isFirstParty":false,"canonicalSlug":"dexswap-quote-base-dex-swap-calldata-8a00ea2e"}