eth_getBalance - Mantle RPC Method
Query account balance on Mantle. Essential for wallet applications and liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies on the world's largest ZK rollup by TVL with $2.5B+ secured and deep Bybit integration.
Returns the balance of a given address on Mantle.
Why Mantle? Build on the world's largest ZK rollup by TVL with $2.5B+ secured and deep Bybit integration with near-instant ZK finality via OP Succinct, $6.2B treasury backing, mETH liquid staking, and 25% Bybit trading fee discounts.
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 liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies
- Account monitoring - Track balance changes over time
Request Parameters
20-byte address to check balance for
Block number in hex, or "latest", "earliest", "pending", "safe", "finalized"
Response Body
Integer of the current balance in wei (hexadecimal)
Code Examples
curl -X POST https://api-mantle-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": [
"0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
"latest"
],
"id": 1
}'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 Mantle. Essential for DeFi developers, liquid staking builders, and teams seeking institutional exchange integration building on the world's largest ZK rollup by TVL with $2.5B+ secured and deep Bybit integration.
eth_getCode
Get contract bytecode on Mantle. Essential for verifying smart contracts for liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies.