{"uid":"cap_v0Lnives_otNh8MDPSF8Y","slug":"lenscrypt-dex-token-swap-quote-1f93d5c9","name":"LensCrypt DEX Token Swap Quote","description":"81 paid REST endpoints covering wallet analytics, DeFi yields, token safety, smart money tracking, whale alerts, sniper detection, GMX perps, Solana tools, protocol stats, gas tracking, DEX quotes, NFT analytics, social signals, and 8 AI-powered endpoints (MiMo V2.5). Pay USDC via x402 protocol on Base.","url":"https://lemscrypt.vercel.app/api/quote/%7Bchain%7D/%7Bfrom%7D/%7Bto%7D","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"},"pathParams":{"type":"object"},"queryParams":{"type":"object","properties":{"amount":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ArARNc0L0eoNm826eKOcs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","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 exchanging one token for another on a specified blockchain chain","exampleAgentPrompt":"What's the current DEX swap quote to trade 500 USDC for WETH on Base — give me the estimated output amount and best route from LensCrypt?","exampleUseCases":[{"title":"Pre-trade token swap price check","prompt":"Before I execute, can you get me a DEX quote for swapping 1000 USDC to ETH on Ethereum mainnet so I know the current rate and expected output?"},{"title":"Cross-chain DEX rate comparison","prompt":"I want to see the swap quote for trading WBTC to USDC on Base — how much USDC would I get for 0.1 WBTC right now?"},{"title":"DeFi bot trade sizing","prompt":"Get me a DEX swap quote on Solana for swapping 5000 of token address So11111111111111111111111111111111111111112 to EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v so I can size my position correctly."}],"resultDescription":"The endpoint returns a swap quote object including the estimated output token amount, exchange rate, price impact, routing path through DEX liquidity pools, and potentially gas cost estimates for the specified chain, from-token, to-token, and input amount.","failureModes":["Invalid or unsupported chain parameter returns an error","Unrecognized token contract addresses return a not-found or invalid token error","No liquidity available for the token pair returns an empty or zero quote","Missing required path parameters (chain, from, to) returns a 400 bad request","Insufficient liquidity or amount too small/large may return a degraded or null quote","Payment not provided or insufficient USDC via x402 returns a 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a quick DEX swap price quote for a specific token pair on a supported blockchain (Base, Ethereum, Solana, etc.) without executing the trade. Prefer it over on-chain RPC calls when you want aggregated routing and price impact data in a single REST call. It is ideal for pre-trade analysis, trade sizing, arbitrage detection, or displaying exchange rates to end users.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:56:48.008Z","isFirstParty":false}