Docs

eth_getBalance - Moonriver RPC Method

Query account balance on Moonriver. Essential for wallet applications and production-grade dApp testing, early feature deployment, and Kusama-based EVM applications on the Moonbeam canary network on Kusama for real-world testing of EVM dApps.

Returns the balance of a given address on Moonriver.

Why Moonriver? Build on the Moonbeam canary network on Kusama for real-world testing of EVM dApps with Moonbeam code ships here first, full EVM compatibility on Kusama, 80% fee burn mechanism, and XCM cross-chain messaging.

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 production-grade dApp testing, early feature deployment, and Kusama-based EVM applications
  • Account monitoring - Track balance changes over time

Code Examples

Error Handling

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