Returns the balance of the account of given address.
Parameters
string
required
The address to check for balance (20 bytes).
string
required
Integer block number, or the string “latest”, “earliest” or “pending”.
Returns
string
A hexadecimal string representing the current balance in wei.
Error Handling
The result represents the balance in wei. To convert to ETH, divide by 10^18.