eth_getBalance - Base RPC Method
Query account balance on Base. Essential for wallet applications and consumer dApps, SocialFi, NFT marketplaces, and merchant payment integrations on Coinbase's L2 with 54% of L2 market revenue and direct access to 110M+ Coinbase users.
Returns the balance of a given address on Base.
Why Base? Build on Coinbase's L2 with 54% of L2 market revenue and direct access to 110M+ Coinbase users with $8B+ TVL, $0.08 gas fees, built-in Coinbase distribution, and seamless fiat rails.
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 consumer dApps, SocialFi, NFT marketplaces, and merchant payment integrations
- 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 Base. Useful for indexers, analytics pipelines, and event backfills across consumer dApps, SocialFi, NFT marketplaces, and merchant payment integrations.
eth_getCode
Get contract bytecode on Base. Essential for verifying smart contracts for consumer dApps, SocialFi, NFT marketplaces, and merchant payment integrations.