eth_getBalance
Returns the balance of the account of a given address.
Parameters
address
: [Required] 20 bytes. A string representing the address to check for balance.block parameter
: A string representing a block number, block hash, or one of the string tagslatest
,earliest
,pending
,safe
, orfinalized
. See the default block parameter.
Returns
A hexadecimal of the current balance (in wei) for the account at the given address.
Example
Last updated
Was this helpful?