{"uid":"cap_PP5WapUKVC4O59IqOFX3Y","slug":"live-erc-20-token-balance-808d994e","name":"Live ERC-20 Token Balance","description":"Read one wallet or contract's current ERC-20 balance directly from Base, Ethereum, or Arbitrum, including raw units and contract-supplied token metadata.","url":"https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/erc20_balance","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","account"],"properties":{"block":{"type":"string","description":"Block tag or height; defaults to latest."},"chain":{"type":"string","description":"base, ethereum, or arbitrum; defaults to base."},"token":{"type":"string","description":"ERC-20 token contract address."},"account":{"type":"string","description":"Wallet or contract address whose token balance should be read."}},"additionalProperties":true}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["success","network","symbol","decimals","balance_raw","balance_formatted","metadata_warnings"],"properties":{"symbol":{"type":"string"},"network":{"type":"string"},"success":{"type":"boolean"},"decimals":{"type":"integer"},"balance_raw":{"type":"string"},"balance_formatted":{"type":"string"},"metadata_warnings":{"type":"array","items":{}}},"additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"symbol":"USDC","network":"base","success":true,"decimals":6,"balance_raw":"0","balance_formatted":"0.0","metadata_warnings":[]}},"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_1TQqg6nANaKviGHPZBFyd","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":"Reads the current ERC-20 token balance for a wallet or contract address on Base, Ethereum, or Arbitrum, returning raw and formatted amounts plus token metadata.","exampleAgentPrompt":"What's the current USDC balance for wallet address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum — give me both the raw amount and the human-readable formatted figure?","exampleUseCases":[{"title":"DeFi portfolio token snapshot","prompt":"Check how many USDT tokens the wallet 0xAbCd1234...5678 holds right now on Arbitrum, and tell me the formatted balance and the token's decimal precision."},{"title":"Treasury contract balance audit","prompt":"What's the current DAI balance held by smart contract 0x6B175474E89094C44Da98b954EedeAC495271d0F on Ethereum? I need both the raw units and the formatted number."},{"title":"Historical block balance lookup","prompt":"What was the WETH token balance of address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e on Base at block 12000000?"}],"resultDescription":"Returns a JSON object with a success flag, the network name, token symbol, token decimals, the raw balance as a string (in smallest units), the formatted balance as a human-readable decimal string, and an array of any metadata warnings encountered during the call.","failureModes":["Invalid or malformed token contract address returns an error or empty result","Invalid wallet/account address returns an error","Unsupported chain name returns a validation error","Block tag too far in the past may not be available on all nodes","Token contract address that is not ERC-20 compliant may produce metadata warnings or missing symbol/decimals","Network congestion may cause slow or failed RPC responses"],"whenToPreferThis":"Choose this endpoint when you need the current (or historical) ERC-20 token balance for a specific wallet or contract on Base, Ethereum, or Arbitrum, and you want both raw on-chain units and a human-readable formatted amount along with token metadata (symbol, decimals) in a single call. Prefer it over a generic eth_call endpoint when you want token metadata included automatically without manually ABI-encoding balanceOf calls.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:47:16.552Z","isFirstParty":false}