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 Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid address format or block parameter |
| -32000 | Execution error | Node execution error |
Related Methods
eth_getCode- Get contract bytecodeeth_getTransactionCount- Get account nonce
eth_getBlockReceipts
Return every transaction receipt in a block on Moonriver. Useful for indexers, analytics pipelines, and event backfills across production-grade dApp testing, early feature deployment, and Kusama-based EVM applications.
eth_getCode
Get contract bytecode on Moonriver. Essential for verifying smart contracts for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications.