Skip to content

eth_getBalance

Returns the balance of the account of given address.

Parameters

  1. string - The address to check for balance.
  2. string - Integer block number, or the string "latest", "earliest" or "pending".

Example

["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"]

Returns

string

A hexadecimal string representing the current balance in wei.

Example

"0x0234c8a3397aab58" // 158972490234375000

Errors

CodeMessage
-32602Invalid address or block parameter