{"uid":"cap_TT7L2BTyEBEjkYfjxR-rQ","slug":"uniswap-v3-on-chain-swap-quote-c88e4926","name":"Uniswap V3 On-Chain Swap Quote","description":"On-chain Uniswap V3 swap quote for any token pair - estimated output amount, effective rate and best fee tier, read directly from pools across Base/Ethereum/Arbitrum/Optimism/Polygon - real-time executable pricing agents need before swapping that LLMs cannot compute. swap quote, swap estimate, uniswap quote, token swap rate, dex quote, how much will i get","url":"https://api.x402node.dev/defi/swap-quote","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"],"type":"string"},"queryParams":{"type":"object","required":["tokenIn","tokenOut"],"properties":{"to":{"type":"string","description":"Target format (optional)"},"from":{"type":"string","description":"Source format (optional)"},"chain":{"type":"string","description":"base (default), ethereum, arbitrum, optimism, polygon"},"amount":{"type":"string","description":"Input amount (default 1)"},"tokenIn":{"type":"string","description":"Input token address (required)"},"tokenOut":{"type":"string","description":"Output token address (required)"}}}},"additionalProperties":false}}},"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__rYW8i4BULdybV_M4dNDi","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 real-time Uniswap V3 swap quote for any token pair including estimated output amount, effective exchange rate, and optimal fee tier across Base, Ethereum, Arbitrum, Optimism, and Polygon.","exampleAgentPrompt":"Before I swap 1 ETH for USDC on Base, can you get me a live Uniswap V3 quote — how much USDC I'd receive, the effective rate, and which fee tier gives the best price?","exampleUseCases":null,"resultDescription":"Returns the estimated output token amount, the effective exchange rate (price per token), the recommended fee tier (e.g. 0.05%, 0.3%, 1%), and pool details — all read live from Uniswap V3 pools on the specified chain, giving the agent executable pricing data before a swap is submitted.","failureModes":["Token pair has no Uniswap V3 liquidity pool on the selected chain — returns error indicating no pool found","Unsupported chain specified — returns error listing supported networks","Invalid token address format — returns validation error","Input amount too small or too large for available pool liquidity — may return high price impact warning or error","RPC node timeout causes stale or failed quote — returns upstream error"],"whenToPreferThis":"Use this endpoint when an agent needs real-time, on-chain executable swap pricing from Uniswap V3 specifically — especially before executing a DEX swap transaction. Prefer this over centralized exchange price feeds when the user intends to trade on-chain via Uniswap, needs fee tier optimization, or requires multi-chain coverage across Base, Ethereum, Arbitrum, Optimism, and Polygon. This is the right choice when accuracy of the on-chain quote matters more than a general market price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:02:26.335Z","isFirstParty":false}