Docs

eth_getBalance - Sonic RPC Method

Query account balance on Sonic. Essential for wallet applications and ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications on the world's fastest EVM chain with 720ms finality, $1.2B+ TVL, and 1,534% growth since launch.

Returns the balance of a given address on Sonic.

Why Sonic? Build on the world's fastest EVM chain with 720ms finality, $1.2B+ TVL, and 1,534% growth since launch with 720ms transaction finality, 10K TPS, 90% fee sharing via FeeM, Fantom heritage with Andre Cronje leadership.

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 ultra-fast DeFi, high-frequency trading dApps, and performance-critical applications
  • Account monitoring - Track balance changes over time

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid address format or block parameter
-32000Execution errorNode execution error