{"uid":"cap_DrKJNHmrCIggp57IDhZH8","slug":"erc-20-token-balance-2b2804be","name":"ERC-20 Token Balance","description":"ERC-20 token balance for a wallet against one token contract, on Ethereum, from Etherscan's V2 API. Requires contract_address as a query param. Returns the raw balance in the token's smallest unit (decimals aren't included in this endpoint's response). $0.01/call.","url":"https://www.x402financialdata.com/token-balance/:address","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"},"pathParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"EVM wallet address"}}},"queryParams":{"type":"object","required":["contract_address"],"properties":{"chain":{"enum":["eth"],"type":"string","description":"Which chain to query. Only 'eth' is supported right now."},"contract_address":{"type":"string","description":"ERC-20 token contract address to check the balance of."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ebai_Zfo8EB8e1gY30Z1p","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the raw ERC-20 token balance for a specific wallet address against a given token contract on Ethereum mainnet.","exampleAgentPrompt":"What's the raw USDC balance (in the smallest unit) for Ethereum wallet 0xAbCd...1234 on the USDC contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?","exampleUseCases":[{"title":"DeFi portfolio token audit","prompt":"Check the raw USDT balance for wallet 0x742d35Cc6634C0532925a3b844Bc454e4438f44e against the USDT contract 0xdAC17F958D2ee523a2206206994597C13D831ec7 on Ethereum — give me the balance in the smallest unit."},{"title":"Airdrop eligibility verification","prompt":"Before sending out the airdrop, verify that wallet 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe holds any amount of our token at contract 0x6B175474E89094C44Da98b954EedeAC495271d0F on Ethereum."},{"title":"Smart contract balance monitoring","prompt":"What is the raw DAI balance held by the multisig at 0x5D3a536E4D6DbD6114cc1Ead35777bAB948E3643 according to the DAI contract 0x6B175474E89094C44Da98b954EedeAC495271d0F on Ethereum?"}],"resultDescription":"Returns the raw token balance as an integer string in the token's smallest unit (e.g. wei-equivalent for that token). Token decimals are not included, so the calling agent must separately know the token's decimal precision to convert to a human-readable amount.","failureModes":["Invalid or malformed wallet address returns an error","Invalid or non-ERC-20 contract address returns an error or zero balance","Contract address is for a non-Ethereum chain — only 'eth' is supported","Wallet address has never interacted with the token — returns zero balance (not an error)","Etherscan API downtime or rate limiting causes 5xx or timeout","Payment failure (insufficient USDC) blocks the call"],"whenToPreferThis":"Use this endpoint when you need the on-chain ERC-20 token balance for a specific wallet-contract pair on Ethereum mainnet and you already know both the wallet address and the token contract address. It is more targeted than a multi-token portfolio endpoint when you only need a single token's balance. Prefer this over native ETH balance endpoints when querying ERC-20 tokens. Note that you will need to handle decimal conversion separately since this endpoint returns only the raw smallest-unit value.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:46:09.968Z","isFirstParty":false}