{"uid":"cap__mhWg9Jsp4TK9-sr_kWAv","slug":"xerxes-erc-20-token-balance-ethereum-mainnet-2294f04a","name":"Xerxes ERC-20 Token Balance (Ethereum Mainnet)","description":"ERC-20 token balance of any address on Ethereum mainnet, read live via balanceOf (eth_call) at the latest block. Returns the raw integer balance in the token's smallest unit. Query: token (ERC-20 contract, 0x + 40 hex), address (holder, 0x + 40 hex).","url":"https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_rpc_api/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":["token","address"],"properties":{"token":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"ERC-20 contract, 0x + 40 hex"},"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"holder, 0x + 40 hex"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean"},"chain":{"type":"string"},"error":{"type":"string","description":"present when ok is false"},"method":{"type":"string"},"result":{"type":"string","description":"the uint256 as a decimal string"},"service":{"type":"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_2X4nwy59EKx0jkeQIvTEk","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 live ERC-20 token balance of any Ethereum address by calling balanceOf on the token contract at the latest block, expressed as a raw uint256 decimal string.","exampleAgentPrompt":"What's the current USDC balance (contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) held by the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet right now?","exampleUseCases":[{"title":"DeFi portfolio balance check","prompt":"Can you check how many LINK tokens (contract 0x514910771AF9Ca656af840dff83E8264EcF986CA) the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 currently holds on Ethereum mainnet?"},{"title":"Pre-trade token sufficiency check","prompt":"Before I submit this swap, verify that 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B has enough WETH (token 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) on Ethereum — get me the raw balance right now."},{"title":"Monitor whale wallet token holdings","prompt":"What is the live on-chain USDT balance (contract 0xdAC17F958D2ee523a2206206994597C13D831ec7) for the address 0x47ac0Fb4F2D84898e4D9E7b4DaB3C24507a6D503 on Ethereum mainnet?"}],"resultDescription":"Returns a JSON object with ok (boolean), result (the uint256 balance as a decimal string in the token's smallest unit, e.g. 6 decimals for USDC), chain (e.g. 'ethereum'), method ('balanceOf'), and service name. On error, ok is false and an error field is present instead of result.","failureModes":["Invalid token or address format (not matching 0x + 40 hex) — request rejected before RPC call","Token contract address is not a valid ERC-20 (balanceOf not implemented) — RPC call reverts or returns unexpected data","Address has no balance — returns ok:true with result '0'","Ethereum node connectivity issues — may return an error with ok:false","Rate limiting or payment issues — HTTP 402 or 429 response"],"whenToPreferThis":"Use this endpoint when you need the live, current ERC-20 token balance of a specific address on Ethereum mainnet and require the raw uint256 value (e.g. for precise arithmetic before displaying human-readable amounts). Prefer it over block-explorer scraping (which is brittle) or general-purpose RPC libraries (which require setup) when you need a fast, single read-only call with no infrastructure overhead. For Base network ERC-20 balances, use the sibling Base balance endpoint instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:23:18.783Z","isFirstParty":false,"canonicalSlug":"xerxes-erc-20-token-balance-ethereum-mainnet-2294f04a"}