{"uid":"cap_wOGGMYjLcfzsvAt3BMwxE","slug":"onchain-erc-20-token-metadata-lookup-0b353ab0","name":"Onchain ERC-20 Token Metadata Lookup","description":"Live Base and Ethereum reads for AI agents: balances (ETH + USDC), gas, transaction status, ERC-20 metadata. $0.001 per call via x402 (USDC on Base).","url":"https://onchain.x402utils.workers.dev/v1/token?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"chain":{"enum":["base","ethereum"],"type":"string","description":"base (default) or ethereum"},"address":{"type":"string","description":"0x-prefixed 20-byte address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"name":"USD Coin","symbol":"USDC","decimals":6,"total_supply":"4000000000.0"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Jk-3Kc0Yc00jw53nV5iqw","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns ERC-20 token metadata (name, symbol, decimals, total supply) for a given contract address on Base or Ethereum.","exampleAgentPrompt":"Look up the ERC-20 token metadata — name, symbol, decimals, and total supply — for the contract address 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 on Ethereum.","exampleUseCases":[{"title":"Identify unknown token contract","prompt":"I found this contract address on Base — 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 — can you tell me what token it is, its symbol, and how many decimals it uses?"},{"title":"Verify USDC supply on Ethereum","prompt":"What is the total supply of USDC on Ethereum right now? The contract is 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48."},{"title":"DeFi app token integration check","prompt":"Before I integrate this token into my app, can you pull the name, symbol, and decimal places for the contract 0x4200000000000000000000000000000000000006 on Base?"}],"resultDescription":"A JSON object containing the token's name (e.g. 'USD Coin'), symbol (e.g. 'USDC'), number of decimals (e.g. 6), and total supply as a decimal string (e.g. '4000000000.0').","failureModes":["Invalid or non-ERC-20 contract address returns an error or empty metadata","Unsupported chain value returns a validation error","Contract address not found on the specified chain returns null or error response","Network/RPC timeout causes a delayed or failed response","Malformed 0x address format rejected by input validation"],"whenToPreferThis":"Choose this endpoint when you need lightweight, read-only ERC-20 token metadata (name, symbol, decimals, total supply) for a specific contract address on Base or Ethereum without setting up your own RPC infrastructure. It is ideal for AI agents that need on-chain token facts quickly and cheaply ($0.001/call via x402 micropayment) without requiring wallet setup or node access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:36:38.377Z","isFirstParty":false,"canonicalSlug":"onchain-erc-20-token-metadata-lookup-0b353ab0"}