{"uid":"cap_OsV6QPOVgyVX_0oC7ZaEr","slug":"erc-20-token-balance-lookup-57bb52d8","name":"ERC-20 Token Balance Lookup","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/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"],"type":"string"},"queryParams":{"type":"object","required":["address","contract"],"properties":{"address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"network":{"enum":["base","ethereum"],"type":"string","default":"base"},"contract":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"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_5MTw3OB-tooeo5sTnt0-g","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":"Returns the ERC-20 token balance of a wallet address on Base or Ethereum for a specified token contract.","exampleAgentPrompt":"What's the USDC balance for wallet 0xAbC123...def456 on the Base network — the USDC contract is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?","exampleUseCases":[{"title":"DeFi portfolio balance check","prompt":"Can you check the USDC balance for wallet 0x1234567890abcdef1234567890abcdef12345678 on Base, using the USDC contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?"},{"title":"Token gate eligibility verification","prompt":"I need to verify that wallet 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef holds any tokens of contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum before granting access."},{"title":"On-chain treasury monitoring","prompt":"Check the current balance of our governance token at contract 0x6b175474e89094c44da98b954eedeac495271d0f for treasury wallet 0x000000000000000000000000000000000000dEaD on Ethereum."}],"resultDescription":"Returns a JSON object indicating the token balance held by the specified wallet address for the given ERC-20 contract on the selected network (Base or Ethereum). The response includes the balance amount, typically in the token's smallest unit (wei or equivalent), along with status information.","failureModes":["Invalid wallet address format (must be 0x-prefixed 40-char hex) returns a validation error","Invalid contract address format returns a validation error","Unsupported network value (only 'base' or 'ethereum' accepted) returns an error","Contract address does not correspond to a valid ERC-20 contract may return zero or an error","Payment not settled via x402 protocol results in HTTP 402 before execution","Network RPC timeout or unavailability may cause delayed or failed responses"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call on-chain ERC-20 balance lookup for any wallet/contract pair on Base or Ethereum without managing your own RPC infrastructure. It is especially suitable for AI agents that need lightweight, machine-payable (x402/USDC micropayment) blockchain reads without committing to a full node provider subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:45:24.000Z","isFirstParty":false,"canonicalSlug":"erc-20-token-balance-lookup-57bb52d8"}