eth_getBalance - Unichain RPC Method
Query account balance on Unichain. Essential for wallet applications and decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications on Uniswap's DeFi-optimized Superchain L2 with 250ms sub-blocks and 95% lower costs than Ethereum.
Returns the balance of a given address on Unichain.
Why Unichain? Build on Uniswap's DeFi-optimized Superchain L2 with 250ms sub-blocks and 95% lower costs than Ethereum with 250ms sub-blocks (fastest L2), TEE-secured block building, native Superchain interoperability, and 65% revenue to validators.
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 exchanges, liquidity protocols, and MEV-protected DeFi 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 Unichain. Useful for indexers, analytics pipelines, and event backfills across decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications.
eth_getCode
Get contract bytecode on Unichain. Essential for verifying smart contracts for decentralized exchanges, liquidity protocols, and MEV-protected DeFi applications.