{"uid":"cap_g3P448qs3NyqkCOOCK-s0","slug":"on-chain-native-coin-balance-lookup-569525e7","name":"On-Chain Native Coin Balance Lookup","description":"","url":"https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/balance","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["address"],"properties":{"chain":{"type":"string","default":"ethereum","description":"EVM chain (ethereum, base, arbitrum, optimism, polygon, bsc)."},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Wallet address."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["machine","route","balance"],"properties":{"chain":{"type":"string"},"route":{"type":"string"},"address":{"type":"string"},"balance":{"type":"object","properties":{"wei":{"type":["string","null"]},"chain":{"type":["string","null"]},"symbol":{"type":["string","null"]},"address":{"type":["string","null"]},"balance":{"type":["string","null"]},"decimals":{"type":["integer","null"]}}},"machine":{"type":"string"},"economics":{"type":"object","properties":{"sellPriceUsd":{"type":"number"},"upstreamCostUsdActual":{"type":["number","null"]}}}}}}}}},"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_9o4rTvG1OPs9q3GIFnJSU","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 native coin balance (ETH/MATIC/BNB/etc.) for any EVM wallet address on a given chain, in both wei and human-readable decimal form, read live from the blockchain.","exampleAgentPrompt":"What's the current ETH balance of wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum — show me the exact amount in ether?","exampleUseCases":[{"title":"Treasury ETH monitoring","prompt":"Check the current ETH balance of our treasury wallet 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B on Ethereum — I need to know the exact amount so I can decide whether to top it up."},{"title":"Payment receipt verification","prompt":"Did wallet 0x1234567890abcdef1234567890abcdef12345678 receive payment? Check its native MATIC balance on Polygon and confirm the current amount."},{"title":"Multi-chain portfolio snapshot","prompt":"Pull up the native BNB balance for wallet 0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef on BSC so I can add it to my portfolio report."}],"resultDescription":"Returns a JSON object containing the wallet address, chain name, native coin symbol, decimals, the balance in wei (exact integer as string), and the human-readable decimal balance. Also includes the RPC route used and pricing metadata.","failureModes":["Invalid wallet address format (not matching 0x + 40 hex chars) — validation error","Unsupported chain name — endpoint only supports ethereum, base, arbitrum, optimism, polygon, bsc","RPC node unreachable or timeout — may return null balance fields","Wallet address valid but has zero balance — returns 0 wei correctly","Payment failure (x402) if USDC payment not attached"],"whenToPreferThis":"Use this endpoint when you need live, on-chain native coin balances (ETH, MATIC, BNB, etc.) rather than token (ERC-20) balances. Prefer it over CEX APIs when you need trustless, real-time blockchain data. Ideal for payment verification, portfolio aggregation, and treasury monitoring where accuracy and freshness matter.","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}