eth_getBalance
Returns the balance of the account of given address.
Parameters
string
- The address to check for balance.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
Code | Message |
---|---|
-32602 | Invalid address or block parameter |