{"uid":"cap_Z5ysL85dYz_jUpa7ySLs7","slug":"dex-token-swap-quote-4a77b585","name":"DEX Token Swap Quote","description":"Best Uniswap v3 single-hop quote for swapping amountIn of tokenIn to tokenOut on Base, Ethereum, Arbitrum or Optimism, checking all fee tiers (0.01/0.05/0.3/1%). Returns amountOut, effective price, best fee tier, gas estimate. Tokens: ETH, USDC, USDT or 0x address. Read-only quote; no swap is executed. Deterministic, no LLM.","url":"https://138-197-15-135.sslip.io/v1/dex/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":["queryParams"],"properties":{"queryParams":{"type":"object","required":["tokenIn","tokenOut","amountIn"],"properties":{"chain":{"type":"string","description":"Chain: base (default), ethereum, arbitrum, optimism"},"tokenIn":{"type":"string","description":"ETH, USDC, USDT or 0x address"},"amountIn":{"type":"string","description":"Human amount of tokenIn, e.g. 1.5"},"tokenOut":{"type":"string","description":"ETH, USDC, USDT or 0x address"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":[],"properties":{"chain":{"type":["string","null"]},"price":{"type":["number","null"]},"venue":{"type":["string","null"]},"feeTier":{"type":["integer","null"]},"tokenIn":{"type":["string","null"]},"amountIn":{"type":["string","null"]},"tokenOut":{"type":["string","null"]},"amountOut":{"type":["string","null"]},"gasEstimate":{"type":["string","null"]}}}}}}},"responseSchema":{"type":"json","example":{"chain":"base","price":2325.41,"venue":"uniswap-v3","feeTier":500,"tokenIn":"WETH","amountIn":"1","tokenOut":"USDC","amountOut":"2325.41","gasEstimate":"90000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0045","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.0045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8XMxlcdau6LW1xBIkfMz3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0045","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 DEX swap quote (price, output amount, venue, gas estimate) for a given token pair and input amount on EVM chains.","exampleAgentPrompt":"What's the current DEX swap quote for 1 ETH to USDC on Base — which venue gives me the best price and how much would I get out?","exampleUseCases":[{"title":"Pre-trade price check before swap","prompt":"Before I swap 2 ETH to USDC on Base, can you get me a DEX quote showing how much USDC I'd receive and which venue like Uniswap v3 is offering that price?"},{"title":"Arbitrage opportunity scanning","prompt":"Check the on-chain swap price for 1000 USDC to WETH on both Base and Arbitrum — I want to compare the amountOut and see which chain gives a better rate."},{"title":"Gas cost estimation for DeFi transaction","prompt":"I'm planning to swap 0.5 WETH to USDT on Ethereum — can you get me a quote including the gas estimate so I can decide if the timing makes sense?"}],"resultDescription":"Returns a JSON object with the chain, trading venue (e.g. uniswap-v3), fee tier, tokenIn symbol and amount, tokenOut symbol and estimated output amount, the effective price (tokenOut per tokenIn unit), and a gas estimate in gas units for the swap transaction.","failureModes":["Unsupported token address returns null fields or error","Invalid amountIn format (non-numeric string) may cause a 400 error","Unsupported chain value returns an error or defaults to Base","Low liquidity pairs may return null amountOut or stale price","Payment failure via x402 results in 402 response before any data is returned"],"whenToPreferThis":"Choose this endpoint when you need a real-time on-chain DEX swap quote for EVM-compatible chains (Base, Ethereum, Arbitrum, Optimism) without executing a trade. It is ideal for pre-trade price checks, arbitrage scanning, DeFi portfolio tooling, and gas estimation. Prefer this over CEX price feeds when you specifically need on-chain DEX venue and fee tier data. It charges per call via x402 USDC micropayments, making it suitable for agent-driven, pay-as-you-go workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:19.141Z","isFirstParty":false,"canonicalSlug":"dex-token-swap-quote-4a77b585"}