Docs

eth_getBalance - Polygon RPC Method

Query account balance on Polygon. Essential for wallet applications and enterprise solutions (Starbucks, Disney, Reddit), gaming, DeFi, and stablecoin payments on the most adopted Ethereum scaling solution with 45,000+ dApps and enterprise partnerships.

Returns the balance of a given address on Polygon.

Why Polygon? Build on the most adopted Ethereum scaling solution with 45,000+ dApps and enterprise partnerships with $4B+ TVL, sub-$0.01 transactions, 8M+ daily transactions, and zkEVM for enhanced security.

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 enterprise solutions (Starbucks, Disney, Reddit), gaming, DeFi, and stablecoin payments
  • Account monitoring - Track balance changes over time

Code Examples

Error Handling

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