{"uid":"cap_GUExVzGO-U4mOFRowi78K","slug":"saylor-innovations-data-desk-uniswap-v3-swap-quote-86068fc3","name":"Saylor Innovations Data Desk – Uniswap V3 Swap Quote","description":"Uniswap V3 swap quote for any token pair on Ethereum, Base, Arbitrum, Optimism or Polygon: best fee tier or WETH hop, output amount, price impact and gas.","url":"https://saylorinnovations.com/api/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":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["chain","token_in","token_out","amount_in"],"properties":{"chain":{"type":"string","description":"ethereum, base, arbitrum, optimism or polygon"},"token_in":{"type":"string","description":"address of the token you sell"},"amount_in":{"type":"string","description":"amount of token_in as a decimal number (for example 1000 for 1000 USDC)"},"token_out":{"type":"string","description":"address of the token you buy"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","dex","token_in","token_out","amount_in","best","alternatives","note","source"],"properties":{"dex":{"type":"string"},"best":{"type":"object"},"note":{"type":"string","description":"Caveat or context for reading the result"},"chain":{"type":"string","description":"Blockchain the data is for"},"source":{"type":"string","description":"Data source the values come from"},"token_in":{"type":"object","description":"Token, in inches"},"amount_in":{"type":"string","description":"Amount, in inches"},"token_out":{"type":"object","description":"Token out"},"alternatives":{"type":"array"},"quoted_at_block":{"type":["number","null"],"description":"Quoted at block"}}}}}}},"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__3YFmOwtsoIemYTU9K1S5","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 Uniswap V3 swap quote for any token pair on Ethereum, Base, Arbitrum, Optimism, or Polygon, including best fee tier, optional WETH hop routing, output amount, price impact, and gas estimate.","exampleAgentPrompt":"What's the best Uniswap V3 quote to swap 1000 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for WETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) on Ethereum right now — what's the output amount, best fee tier, and price impact?","exampleUseCases":[{"title":"Pre-trade price check for DeFi bot","prompt":"Before I execute a swap, tell me how much WETH I'll get for 5000 USDC on Base — use token addresses 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 for USDC and 0x4200000000000000000000000000000000000006 for WETH, and show me the best fee tier and price impact."},{"title":"Arbitrage opportunity scouting","prompt":"Get me a Uniswap V3 quote on Arbitrum for swapping 10 WETH (0x82aF49447D8a07e3bd95BD0d56f35241523fBab1) to USDC (0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8) — what's the output amount and price impact so I can compare it against another exchange?"},{"title":"Gas cost estimation before large swap","prompt":"I'm about to swap 100000 DAI for USDC on Polygon — DAI is 0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063 and USDC is 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174. Can you get me the Uniswap V3 quote with the expected output, best fee tier, and gas estimate?"}],"resultDescription":"A JSON object containing the best swap route on Uniswap V3 (output token amount, optimal fee tier, whether a WETH hop is used, price impact, and gas estimate), plus an array of alternative routes, the block at which the quote was taken, the data source, and a note with caveats for interpreting the result.","failureModes":["Unsupported chain name returns an error or empty result","Invalid or non-checksummed token address causes a failed lookup","No liquidity in any fee tier for the pair returns no valid quote","Extremely large amount_in may produce unreliable price impact figures","Network congestion or RPC node issues may cause stale or failed quotes","amount_in formatted incorrectly (e.g. in wei instead of decimal) produces wrong output"],"whenToPreferThis":"Choose this endpoint when you need a fast, read-only Uniswap V3 swap quote across Ethereum mainnet or major L2s (Base, Arbitrum, Optimism, Polygon) without needing to connect a wallet or execute a transaction. It is ideal for pre-trade price checks, arbitrage scouting, gas estimation, and building DeFi dashboards. Prefer it over on-chain RPC calls when you want automatic best-fee-tier selection and WETH routing handled for you.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:22:06.473Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-data-desk-uniswap-v3-swap-quote-86068fc3"}