{"uid":"cap_5-_J8RIOuMYKsbmDXKOmT","slug":"halowerk-defiwerk-dex-quote-2e031f37","name":"HALOWERK defiwerk DEX Quote","description":"For a given chain, token pair and input amount, every connected DEX is queried through its own contracts: Uniswap V3 through the Quoter via eth_call across all fee tiers, constant-product pools through the pool maths on live reserves, Solidly-style pools through their own getAmountOut. Two-hop routes through the wrapped native token and the chain USDC are included, priced by chaining the hops exactly as a real swap would traverse them. Nothing is executed, submitted or handed to a router — every","url":"https://defi.halowerk.com/dex/quote?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string"},"token_in":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"amount_in":{"type":"string","pattern":"^[0-9]+(\\.[0-9]+)?$","description":"Input amount in whole token units, as a decimal string, e.g. \"1.5\"."},"token_out":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"slippage_bps":{"type":"integer","default":50,"maximum":5000,"minimum":0,"description":"Caller slippage tolerance in basis points; only used to derive amount_out_min."},"include_multihop":{"type":"boolean","default":true,"description":"Also price routes through one intermediate token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_p3sxdOrxcujwKywnOJ8gj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Queries every connected DEX on a given chain for the best output amount for a token swap, including single-hop and two-hop routes, without executing any transaction.","exampleAgentPrompt":"Can you get me a DEX quote on Base for swapping 500 USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) to WETH (0x4200000000000000000000000000000000000006), with 30 bps slippage and multi-hop routes enabled?","exampleUseCases":[{"title":"Pre-trade best execution check","prompt":"Before I swap 10 ETH for USDC on Arbitrum, can you check all the DEXes — Uniswap V3 across all fee tiers and any constant-product pools — and tell me what the best output amount would be and which route to take? Use token addresses 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1 for WETH and 0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8 for USDC, and set slippage to 50 bps."},{"title":"Arbitrage opportunity scanner","prompt":"I'm looking for arbitrage between Ethereum and Polygon. On Polygon, what's the best DEX quote for swapping 1000 USDT (0xc2132D05D31c914a87C6611C10748AEb04B58e8F) to WMATIC (0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270) right now, including two-hop routes? Set slippage to 0 bps since I just want the raw quote."},{"title":"DeFi dashboard live price feed","prompt":"For my portfolio dashboard, can you get a live quote on Optimism for swapping 1 WETH (0x4200000000000000000000000000000000000006) to OP (0x4200000000000000000000000000000000000042) with 100 bps slippage tolerance, including multi-hop paths through USDC?"}],"resultDescription":"Returns the best output token amount across all queried DEXes (Uniswap V3 at each fee tier, constant-product pools, Solidly-style pools), the route taken (single-hop or two-hop), the DEX and fee tier selected, and a derived amount_out_min based on the caller's slippage tolerance. No transaction is submitted or signed.","failureModes":["Unsupported chain returns validation error","Invalid token address format (non-EX pattern) returns 400","No liquidity found for the pair returns empty or zero quote","RPC node timeout causes delayed or failed response","Extremely large input amounts may return inaccurate quotes due to pool depth limits"],"whenToPreferThis":"Use this endpoint when you need a read-only, multi-DEX aggregated price quote on Base, Ethereum, Arbitrum, Optimism, or Polygon without executing a swap. Prefer it over single-DEX quoters when you want the best price across all fee tiers and pool types simultaneously, or when you need two-hop route pricing. It is ideal for pre-trade analysis, arbitrage detection, and portfolio dashboards where execution is handled separately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:33:41.403Z","isFirstParty":false,"canonicalSlug":"halowerk-defiwerk-dex-quote-2e031f37"}