{"uid":"cap_7ETXmwSEyUWddG1qHXgTb","slug":"x402-base-tools-erc-20-token-price-on-base-d79e1157","name":"x402 Base Tools – ERC-20 Token Price on Base","description":"Base mainnet data for agents, read live from the chain and paid per call in USDC: gas prices and costs, token prices from Uniswap and Aerodrome pools, balances, token info, transaction decoding, x402 payment checks, EIP-3009 authorization status, Basenames and address profiles. Lookups of things that do not exist are not charged.","url":"https://wt7tysfcmjm8fpzl.68r.lambda-web.us-east-1.on.aws/v1/price?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":["token"],"properties":{"token":{"type":"string","description":"token address, or a symbol: ETH, WETH, USDC, CBBTC, AERO, DAI, USDT, DEGEN, BRETT, VIRTUAL, CBETH, WSTETH, EURC"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"token":{},"source":{},"price_usd":{},"low_liquidity":{}}}}}}},"responseSchema":{"type":"json","example":{"token":{"symbol":"AERO","address":"0x9401...","decimals":18},"source":{"dex":"aerodrome","pool":"0x...","quote":"USDC","depth_usd":5000000},"price_usd":0.83,"low_liquidity":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_XJ1HoJQkMwo1rm5MFwLT1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current USD price of any ERC-20 token on Base by reading Uniswap v3 and Aerodrome pool depths against USDC and WETH (with ETH/USD from Chainlink), flagging thin markets.","exampleAgentPrompt":"What's the current USD price of AERO on Base — and is there enough liquidity in the pool to trust that price?","exampleUseCases":[{"title":"Live DeFi portfolio valuation","prompt":"I hold VIRTUAL, AERO, and DEGEN on Base — can you get me the current USD prices for all three so I can work out my portfolio value?"},{"title":"Thin market liquidity warning","prompt":"Before I swap into BRETT on Base, can you check its current USD price and tell me whether the pool is too thin to trust the quote?"},{"title":"Arbitrage price comparison","prompt":"What's cbBTC priced at in USD right now on Base — and which pool (Uniswap v3 or Aerodrome) is giving the deepest liquidity?"}],"resultDescription":"Returns a JSON object with token metadata (symbol, address, decimals), the winning DEX source (pool address, quote asset, depth in USD), the current USD price as a float, and a boolean low_liquidity flag indicating whether the market is too thin to be reliable.","failureModes":["Unknown token symbol or unrecognized address returns an error or empty result","Token exists but has no Uniswap v3 or Aerodrome pool — no price available","Very low liquidity pools return a price but set low_liquidity: true","Stale or manipulated thin pool may produce an unreliable price","Network or Lambda timeout causes a 5xx error","Malformed token address input causes a validation error"],"whenToPreferThis":"Use this endpoint when you need a real-time USD price for any ERC-20 token specifically on the Base network, sourced from on-chain DEX pools (Uniswap v3 and Aerodrome) rather than a centralized price feed. It is especially useful when you need per-pool depth data and a low-liquidity flag to assess price reliability — making it better than generic CEX price APIs for on-chain DeFi workflows on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:03:07.838Z","isFirstParty":false,"canonicalSlug":"x402-base-tools-erc-20-token-price-on-base-d79e1157"}