Docs

eth_getBalance - IoTeX RPC Method

Query account balance on IoTeX. Essential for wallet applications and decentralized physical infrastructure (DePIN), IoT device identity (ioID), and AI-verified real-world data on the leading DePIN infrastructure blockchain powering 130+ applications in the $27B+ DePIN ecosystem.

Returns the balance of a given address on IoTeX.

Why IoTeX? Build on the leading DePIN infrastructure blockchain powering 130+ applications in the $27B+ DePIN ecosystem with W3bstream offchain compute, Quicksilver AI data verification, Vodafone partnership for 5M+ cell tower integration, and ioID device identity.

Use Cases

The eth_getBalance method is essential for:

  • Wallet applications - Display user balances
  • Transaction validation - Check if account has sufficient funds
  • DeFi applications - Monitor collateral and liquidity for decentralized physical infrastructure (DePIN), IoT device identity (ioID), and AI-verified real-world data
  • Account monitoring - Track balance changes over time

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid address format or block parameter
-32000Execution errorNode execution error