{"uid":"cap_i9k9ygTAsnpoXMM3OUhfp","slug":"erc-20-token-balance-lookup-cd9cf4c6","name":"ERC-20 Token Balance Lookup","description":"Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.","url":"https://anibalb.duckdns.org/x402/erc20-balance?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":{"address":{"type":"string"},"contract":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"symbol":"USDC","address":"0x...","balance":100,"contract":"0x...","decimals":6}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_OjLzhwGnskWtbJpJx4bnl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the ERC-20 token balance for a given wallet address on a specified contract, including symbol, decimals, and balance.","exampleAgentPrompt":"What's the USDC balance of wallet address 0xAbC123... on the USDC contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?","exampleUseCases":[{"title":"Pre-transfer token balance check","prompt":"Before I send tokens, check the ERC-20 balance of wallet 0xAbC123... on the DAI contract 0x6B175474E89094C44Da98b954EedeAC495271d0F so I know if it has enough funds."},{"title":"DeFi portfolio balance audit","prompt":"Look up the USDC balance for my wallet 0xDeF456... using the USDC contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Base — I want to see the raw balance and how many decimals it uses."},{"title":"Smart contract token eligibility check","prompt":"Can you check if wallet 0x789GHI... holds any tokens in the governance token contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984? I need the balance and symbol to verify eligibility."}],"resultDescription":"Returns a JSON object with the token symbol (e.g. 'USDC'), the wallet address queried, the token balance as a number, the ERC-20 contract address, and the number of decimals used by the token.","failureModes":["Invalid or malformed wallet address returns an error","Unknown or non-ERC-20 contract address may return zero balance or an error","Missing required 'address' query parameter returns a validation error","Network or RPC errors from the underlying blockchain node","Contract address with no deployed code returns an error","Rate limiting or payment failure via x402 if USDC payment is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a fast, keyless, pay-per-call onchain ERC-20 balance read without setting up an account or API key. Ideal for agents that need to check token holdings programmatically on demand, especially when working in a x402 micropayment context. Prefer this over full node queries when you want a simple REST interface to ERC-20 balances without managing RPC infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:34:20.773Z","isFirstParty":false,"canonicalSlug":"erc-20-token-balance-lookup-cd9cf4c6"}