eth_getBalance - Hyperliquid RPC Method
Query account balance on Hyperliquid. Essential for wallet applications and perpetual futures trading, onchain order books, and institutional-grade derivatives on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data.
Returns the balance of a given address on Hyperliquid.
Why Hyperliquid? Build on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data with HyperCore market structure, sub-second finality, and direct access to trading-focused data services.
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 perpetual futures trading, onchain order books, and institutional-grade derivatives
- 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_getBlockByHash
Retrieve complete block data by block hash on Hyperliquid. Essential for derivatives traders, DeFi protocols, and teams building high-frequency trading applications building on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data.
eth_getCode
Get contract bytecode on Hyperliquid. Essential for verifying smart contracts for perpetual futures trading, onchain order books, and institutional-grade derivatives.