{"uid":"cap_HG2nXfkG5Bepu8uJIUYKA","slug":"baselens-erc-20-balance-lookup-1d4a1c3f","name":"BaseLens ERC-20 Balance Lookup","description":"Base address, ERC-20 balance, token price, recent transfers, Basename/ENS resolve, contract verification, tx summaries and gas over x402 and MCP. $0.001–$0.004 USDC per call, no API key.","url":"https://baselens-api.vercel.app/v1/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"],"type":"string"},"queryParams":{"type":"object","required":["token","address"],"properties":{"token":{"type":"string","description":"ERC-20 token contract on Base"},"address":{"type":"string","description":"0x-prefixed Base address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"token":"0x8335…2913","symbol":"USDC","balance":"1","decimals":6,"balanceRaw":"1000000"}},"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_WkUKEneHWD4IKDMbT2gTL","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 ERC-20 token balance for a given wallet address on the Base blockchain, including symbol, decimals, and raw balance.","exampleAgentPrompt":"What's the USDC balance for the Base wallet 0xAbC123...def on the USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?","exampleUseCases":[{"title":"DeFi portfolio balance check","prompt":"Can you look up how much USDC the Base address 0x1234567890abcdef1234567890abcdef12345678 is holding? The USDC contract on Base is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913."},{"title":"Payment eligibility verification","prompt":"Before I process this transaction, check if 0xDeAdBeEf0000000000000000000000000000dEaD has at least some WETH on Base — the WETH contract is 0x4200000000000000000000000000000000000006."},{"title":"Agent treasury monitoring","prompt":"Tell me the current token balance of our agent's wallet 0xAaBbCcDdEeFf001122334455667788990011aabb for the DAI contract 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb on Base."}],"resultDescription":"Returns a JSON object containing the token contract address, token symbol (e.g. USDC), human-readable balance, decimal precision, and raw balance integer — sufficient to display or compare holdings without further transformation.","failureModes":["Invalid or non-checksummed wallet address returns an error","Token contract address that is not a valid ERC-20 on Base returns empty or error","Address with zero balance returns balance of '0'","Network downtime or RPC issues may produce 5xx errors","Payment failure via x402 protocol causes 402 response blocking the call"],"whenToPreferThis":"Choose this endpoint when you need on-chain ERC-20 token balances on the Base network without setting up an API key, especially in agent workflows that support x402 micropayments. It is ideal for pay-per-query agent pipelines, DeFi automations, or balance verification steps where the $0.002 per-call cost is acceptable and real-time on-chain accuracy is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:37:55.667Z","isFirstParty":false,"canonicalSlug":"baselens-erc-20-balance-lookup-1d4a1c3f"}