{"uid":"cap_mN21GdCDus4ipO0EllPth","slug":"eth-mainnet-erc-20-balance-dac256b1","name":"ETH Mainnet ERC-20 Balance","description":"Ethereum mainnet ERC-20 balanceOf. Takes query parameters token (ERC-20 contract, 0x + 40 hex) and address (holder, 0x + 40 hex). Returns the holder's raw token balance read from the contract.","url":"https://ari001.tailb4ac3a.ts.net/v1/ventures/x402_eth_reads_v1/eth_mainnet_erc20_balanceof?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","properties":{"token":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"ERC-20 contract, 0x + 40 hex"},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"holder, 0x + 40 hex"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_GSa2Jzdqi7XhbMfnORX9Q","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":"Reads the raw ERC-20 token balance for a given holder address on Ethereum mainnet by calling the balanceOf function on the token contract.","exampleAgentPrompt":"What's the raw ERC-20 balance of wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 for the USDC token contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet?","exampleUseCases":[{"title":"DeFi portfolio tracker balance check","prompt":"Can you look up how many USDT tokens the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 holds on Ethereum mainnet? The USDT contract address is 0xdAC17F958D2ee523a2206206994597C13D831ec7."},{"title":"Airdrop eligibility verification","prompt":"Before I submit this airdrop claim, can you verify whether 0x742d35Cc6634C0532925a3b844Bc454e4438f44e actually holds any of the governance token at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum mainnet?"},{"title":"On-chain payment confirmation","prompt":"I'm expecting a payment in WETH to my address 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B — can you check my current WETH balance at contract 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 on Ethereum mainnet so I know if it arrived?"}],"resultDescription":"Returns the raw uint256 token balance of the specified holder address as reported by the ERC-20 contract's balanceOf function on Ethereum mainnet. The value is in the token's smallest unit (e.g. 6 decimals for USDC, 18 for most tokens) and must be divided by the token's decimal factor to get a human-readable amount.","failureModes":["Invalid token address format (not 0x + 40 hex) — request rejected with validation error","Invalid holder address format (not 0x + 40 hex) — request rejected with validation error","Non-ERC-20 contract address provided — call may return zero or revert","Payment not fulfilled — x402 payment of $0.002 USDC required before response is returned","Ethereum node unavailable or rate-limited — may return 5xx error","Address with no token holdings returns 0, which is valid not an error"],"whenToPreferThis":"Use this endpoint when you need to read the ERC-20 token balance for a specific holder on Ethereum mainnet directly from the contract. Prefer this over block explorer APIs when you need trustless, on-chain data without API key management, or when building automated agents that need real-time balance checks. This is a read-only call with no side effects and costs a flat $0.002 USDC per call via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:41:11.790Z","isFirstParty":false,"canonicalSlug":"eth-mainnet-erc-20-balance-dac256b1"}