{"uid":"cap__gpGvNAW1ljx8D8liMK2a","slug":"dex-swap-quote-the-stall-x402-0ecdcd16","name":"DEX Swap Quote — The Stall x402","description":"Best-route DEX swap quote across 20+ chains via Li.Fi aggregator. Returns expected output, exchange rate, gas cost, price impact, and route (DEX/bridge names). Works for same-chain and cross-chain swaps. Use ETH/USDC/WBTC symbols or ERC-20 addresses. Chains: ethereum, base, polygon, arbitrum, optimism, bsc, avalanche, and more. $0.012/call — free upstream.","url":"https://the-stall.intuitek.ai/cap/dex-swap-quote","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"slippage":0.005,"to_chain":"ethereum","to_token":"USDC","from_chain":"ethereum","from_token":"ETH","from_amount":"0.5"}}},"response":{"route":["Integrator Fee","Kyberswap"],"fee_usd":2.0906,"quote_ts":"2026-06-12T05:11:15.735Z","to_chain":"1","to_token":"USDC","to_amount":832.864665,"from_chain":"1","from_token":"ETH","cross_chain":false,"from_amount":0.5,"gas_cost_usd":0.2322,"price_impact":"unknown","exchange_rate":1665.72933,"to_amount_min":828.700342,"execution_time_seconds":null}},"exampleRequest":{"slippage":0.005,"to_chain":"ethereum","to_token":"USDC","from_chain":"ethereum","from_token":"ETH","from_amount":"0.5"},"tags":["x402"],"displayCostAmount":"0.059","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.059/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.059","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.059","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IC4DEZLJP7VgRGkDh_hia","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.059","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a DEX swap quote for a given token pair and amount across multiple EVM chains, including price, route, and slippage details.","exampleAgentPrompt":"What's the best DEX quote to swap 0.5 ETH for USDC on Base mainnet right now, with a max slippage of 0.5%?","exampleUseCases":null,"resultDescription":"Returns a swap quote including the estimated output token amount, exchange rate, DEX routing path, price impact, and slippage parameters for the specified token pair and chain(s).","failureModes":["Unsupported chain ID or name returns an error","Unknown or unlisted token symbol with no contract address provided","Requested swap amount too small or too large for available liquidity","Cross-chain pair with no route available returns no-quote error","Invalid slippage value outside allowed range (0.0001–0.5) rejected","Payment not included or insufficient USDC returns 402 response"],"whenToPreferThis":"Use this endpoint when you need a real-time DEX swap quote before executing a token swap on EVM-compatible chains (Ethereum, Base, Polygon, Arbitrum, Optimism, BSC, Avalanche). Ideal for agents that need to check price, slippage, and routing without executing a trade. Requires no API key — pay $0.012 USDC per call via x402 on Base mainnet.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:44:42.679Z","isFirstParty":false}