{"uid":"cap_JOO-tdIKHkS0oCJOl_RU4","slug":"first-dollar-on-chain-quote-api-68f67e60","name":"First Dollar On-Chain Quote API","description":"Live Base chain reads sold per call over x402 (exact, USDC on Base, $0.02/call).","url":"https://firstdollar-api.onrender.com/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":["tokenIn","tokenOut","amountIn"],"properties":{"tokenIn":{"type":"string","description":"Input token: symbol (USDC, WETH…) or 0x address"},"amountIn":{"type":"string","description":"Input amount in whole-token units (e.g. 10.5)"},"tokenOut":{"type":"string","description":"Output token: symbol or 0x address"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oSd4iqYUIrg-GLUpkfUxS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a live token swap quote on Base chain given an input token, output token, and amount","exampleAgentPrompt":"What's the current on-chain quote for swapping 10.5 USDC to WETH on Base? Give me the live rate right now.","exampleUseCases":[{"title":"Pre-trade swap rate check","prompt":"Before I execute a trade, can you pull the live Base chain quote for swapping 500 USDC into WETH so I know how much ETH I'd get?"},{"title":"Arbitrage price monitoring","prompt":"Check the current on-chain quote for swapping 1 WETH to USDC on Base — I want to see if the rate is favorable compared to what I saw an hour ago."},{"title":"Token price lookup for portfolio valuation","prompt":"I need to know how much USDC I'd get for 0.5 WETH right now on Base chain — just give me the live quote."}],"resultDescription":"Returns a live quote from Base chain for the requested token swap, including the expected output amount for the given input token and amount, reflecting real-time on-chain liquidity and pricing.","failureModes":["Unsupported token symbol or invalid 0x address returns an error","Token pair with insufficient liquidity may return no quote or a degraded result","Missing required query parameters (tokenIn, tokenOut, amountIn) results in a validation error","Payment failure over x402 (insufficient USDC balance or authorization) blocks the response","Network or RPC issues on Base chain may cause temporary unavailability"],"whenToPreferThis":"Choose this endpoint when you need a real-time, on-chain swap quote specifically on the Base chain and are comfortable paying $0.02 USDC per call via x402 micropayment. Prefer it over off-chain price feeds when accuracy to actual on-chain liquidity matters, or when building agents that need to verify executable swap rates rather than indicative market prices.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:34:38.452Z","isFirstParty":false,"canonicalSlug":"first-dollar-on-chain-quote-api-68f67e60"}