{"uid":"cap_lozU5K5OHcBsb6Hg81a_i","slug":"agent-data-desk-token-balance-lookup-50b6e0b0","name":"Agent Data Desk – Token Balance Lookup","description":"Pay-per-call data for AI agents: weather ($0.005), defi_yields ($0.002), token_balance ($0.002), markdown ($0.01). USDC on Base mainnet via x402 v2; no API keys, no accounts.","url":"https://x402-seller.zshnfaizal.workers.dev/v1/token/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"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"chain":{"enum":["base","ethereum"],"type":"string"},"token":{"type":"string","description":"'eth' for native balance, an alias (usdc, usdt, dai, weth, cbbtc) or a 0x contract address."},"address":{"type":"string","description":"0x-prefixed 20-byte address to query."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["chain","address","token","balance"],"properties":{"rpc":{"type":"string"},"chain":{"type":"string"},"token":{"type":"object","properties":{"kind":{"type":"string"},"symbol":{"type":"string"},"address":{"type":["string","null"]},"decimals":{"type":"integer"}}},"address":{"type":"string"},"balance":{"type":"object","properties":{"raw":{"type":"string"},"formatted":{"type":"string"}}},"chain_id":{"type":"integer"},"fetched_at":{"type":"string"},"block_number":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"rpc":"mainnet.base.org","chain":"base","token":{"kind":"erc20","symbol":"USDC","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","decimals":6},"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","balance":{"raw":"0","formatted":"0"},"chain_id":8453,"fetched_at":"2026-08-29T20:05:12.000Z","block_number":41234567}},"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_PKT33EaJ1ia5z1k3-uVe5","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":"Returns the on-chain token balance for a given wallet address on Base or Ethereum, paid per-call at $0.002 USDC via x402.","exampleAgentPrompt":"What's the current USDC balance of wallet address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base mainnet?","exampleUseCases":[{"title":"DeFi agent pre-flight balance check","prompt":"Before executing this swap, check whether wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 has at least 500 USDC on Base mainnet."},{"title":"Portfolio tracker balance snapshot","prompt":"Fetch the current WETH balance for address 0xAbCd1234567890abcdef1234567890abcdef1234 on Ethereum so I can update my portfolio dashboard."},{"title":"Airdrop eligibility verification","prompt":"Check the DAI token balance on Base for address 0x1234567890abcdef1234567890abcdef12345678 — I need to verify they hold any DAI before qualifying them for the airdrop."}],"resultDescription":"Returns a JSON object containing the queried wallet address, chain name, chain ID, token metadata (symbol, kind, contract address, decimals), balance as both a raw integer string and a human-readable formatted string, the RPC endpoint used, the block number at which the balance was fetched, and a UTC timestamp of when the data was retrieved.","failureModes":["Invalid or malformed wallet address returns an error response","Unsupported token alias or invalid contract address yields an error","Payment failure (insufficient USDC or x402 protocol error) results in a 402 response with no data","Unsupported chain value (anything other than 'base' or 'ethereum') returns validation error","RPC node unavailability may cause transient failures or timeouts"],"whenToPreferThis":"Choose this endpoint when you need a quick, no-account, pay-per-call on-chain token balance lookup for Base or Ethereum without setting up API keys or a subscription. It supports native ETH, common ERC-20 aliases (USDC, USDT, DAI, WETH, cbBTC), and arbitrary contract addresses, making it versatile for DeFi agents, portfolio trackers, and eligibility checks. At $0.002 per call it is cost-effective for low-to-moderate frequency queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:35:43.288Z","isFirstParty":false}