{"uid":"cap__vL6DaApdwwP0rtm6qVjP","slug":"joe-evm-rpc-erc-20-token-balance-a07a9db8","name":"Joe EVM RPC – ERC-20 Token Balance","description":"Live Base and Ethereum RPC for AI agents: block tip, balances, transactions, and ENS. $0.001 USDC per call on Base.","url":"https://joe-evm-rpc.marnick-yezo.workers.dev/api/chain/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","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"pathParams":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","required":["account","token"],"properties":{"token":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"ERC-20 contract (alias: contract)"},"account":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Wallet address (alias: address)"},"network":{"enum":["base","ethereum"],"type":"string","default":"base","description":"EVM network. Default base."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"name":"USD Coin","symbol":"USDC","account":"0x0000000000000000000000000000000000000000","balance":"0","decimals":6,"contract_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"meta":{"rpc":"https://mainnet.base.org","network":"base","endpoint":"/api/chain/erc20-balance","cost_usdc":"0.001","request_id":"00000000abcdef01"}}},"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_BKyUm6Wxv-AmwzGy--0mt","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":"Fetches the ERC-20 token balance for a given wallet address and token contract on Base or Ethereum.","exampleAgentPrompt":"What's the USDC balance of wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base? The USDC contract is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.","exampleUseCases":[{"title":"DeFi portfolio token balance check","prompt":"Tell me how much USDC the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 holds on Base — the USDC contract is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913."},{"title":"Payment eligibility gating","prompt":"Check if wallet 0xAbCd1234abcd1234abcd1234abcd1234abcd1234 has at least 10 USDC on Ethereum before I approve their access — token contract is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48."},{"title":"Automated treasury monitoring","prompt":"What's the current WETH balance in our treasury wallet 0xBEEF0000000000000000000000000000DeaDBeEf on Base? The WETH contract there is 0x4200000000000000000000000000000000000006."}],"resultDescription":"Returns a JSON object with the token name, symbol, wallet address, raw balance (as a string), decimal precision, and contract address, plus metadata including the RPC URL used, network, endpoint path, cost in USDC, and a unique request ID.","failureModes":["Invalid wallet address format (not a valid 0x hex address) returns a validation error","Invalid or non-ERC-20 contract address returns zero or error","Network not supported beyond 'base' and 'ethereum' returns a 422/400 error","Payment not included or insufficient USDC causes a 402 Payment Required response","RPC node downtime or latency causes timeout or 5xx error","Token contract exists but wallet has zero balance — returns 0 (not an error)"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call ERC-20 token balance lookup on Base or Ethereum without managing your own RPC infrastructure or API keys. It is ideal for AI agents that need programmatic, low-latency access to on-chain token balances with micropayment billing via x402/USDC. Prefer it over raw RPC calls when you want a structured JSON response with token metadata (name, symbol, decimals) already resolved.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:30:11.393Z","isFirstParty":false}