{"uid":"cap_S5GK3VVBZoGaUF0cndcbz","slug":"coreforge-chain-reads-erc-20-token-balance-72075d28","name":"CoreForge Chain Reads — ERC-20 Token Balance","description":"Base chain read — ERC-20 token balance of an address","url":"https://coreforge-memory.onrender.com/x402/chain/token-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":["address","token"],"properties":{"token":{"type":"string","description":"ERC-20 token contract address on Base"},"address":{"type":"string","description":"Holder address (0x, 40 hex chars)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"chain":{"type":"string"},"token":{"type":"string"},"symbol":{"type":"string"},"address":{"type":"string"},"balance":{"type":"number","description":"Balance in token units"},"chainId":{"type":"integer"},"decimals":{"type":"integer"},"rawBalance":{"type":"string","description":"Balance in base units (string)"}}}}}}},"responseSchema":null,"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_hjw93O4_AVG0KNShHtMvU","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 of a given address on the Base blockchain, including symbol, decimals, and both human-readable and raw balances.","exampleAgentPrompt":"What's the USDC balance for the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base — give me both the readable amount and the raw balance?","exampleUseCases":[{"title":"DeFi portfolio balance check","prompt":"Can you check how much USDC the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 is holding on Base right now?"},{"title":"Pre-trade balance verification","prompt":"Before I trigger a swap, can you confirm whether 0xAbCd1234567890EFabcdef1234567890ABcdef12 has enough WETH — the contract is 0x4200000000000000000000000000000000000006 — to cover the trade?"},{"title":"Multi-wallet token audit","prompt":"I need to audit token holdings — tell me the exact balance of the ARB token at contract 0x912CE59144191C1204E64559FE8253a0e49E6548 for the address 0x1234abcd5678EF901234abcd5678EF9012345678 on Base."}],"resultDescription":"Returns a JSON object with the holder address, token contract address, token symbol, number of decimals, human-readable balance (as a number), raw balance in base units (as a string), chain name (Base), and chain ID.","failureModes":["Invalid or malformed holder address returns an error (e.g. wrong length or non-hex)","Invalid token contract address (not an ERC-20 contract on Base) returns an error or zero balance","Token contract exists on a different chain (not Base) returns incorrect or empty result","RPC node timeout or Base chain congestion may cause intermittent failures","Address with zero balance returns a valid response with balance of 0, which may be confused for an error"],"whenToPreferThis":"Use this endpoint when you need on-chain ERC-20 token balance data specifically on the Base blockchain, with both human-readable and raw (base unit) values returned in a single call. Prefer it over generic RPC calls when you want a managed, pay-per-use API without managing your own node. Best suited for agents that need quick balance lookups in DeFi workflows, portfolio checks, or pre-transaction validations on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T18:41:24.515Z","isFirstParty":false,"canonicalSlug":"coreforge-chain-reads-erc-20-token-balance-72075d28"}