{"uid":"cap_CJlUmoEep3CXJpBA7HzP5","slug":"dexswap-price-8d39cf08","name":"dexswap-price","description":"Lightweight swap quote for Base without calldata: give tokenIn, tokenOut and raw amountIn and get the max-output route across Aerodrome and Uniswap V3, the buy amount, amountOutMin, price impact and the venues compared. A cheap price check before you build the full transaction.","url":"https://payai.agentstools.dev/swap/price?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"],"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."},"slippageBps":{"type":"integer","description":"Max slippage in basis points (50 = 0.5%). Default 50, max 5000."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_QvnOSq4ScA75JTzq3EBUI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a lightweight swap price quote (best route, output amount, price impact) across Aerodrome and Uniswap V3 on Base without building a full transaction","exampleAgentPrompt":"Before I execute the transaction, check the best swap price for selling 1 WETH (1000000000000000000 raw units) to get USDC on Base — show me the best route across Aerodrome and Uniswap V3, the expected output, and price impact with 50 bps slippage.","exampleUseCases":null,"resultDescription":"Returns the optimal DEX route across Aerodrome and Uniswap V3, the expected buy amount in raw units, the minimum output amount (amountOutMin) after slippage, price impact percentage, and a breakdown of the venues compared — all without building a calldata transaction.","failureModes":["Unsupported token symbol or unrecognized ERC-20 address returns an error","amountIn of zero or non-integer string causes validation failure","slippageBps exceeding 5000 is rejected","Token pair with no liquidity on either venue returns no route found","Network issues or RPC timeouts cause transient 5xx errors"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap price check before constructing a full swap transaction on Base — especially when you want to compare Aerodrome and Uniswap V3 routes and assess price impact without the overhead of calldata generation. Prefer this over full swap-transaction endpoints when only a quote is needed for display, comparison, or pre-flight validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:46:08.435Z","isFirstParty":false,"canonicalSlug":"dexswap-price-8d39cf08"}