Skip to main content
Defined in the Ethereum JSON-RPC Specification
Returns the balance of the account of given address.

Parameters

address
string
required
The address to check for balance (20 bytes).
blockParameter
string
required
Integer block number, or the string “latest”, “earliest” or “pending”.

Returns

result
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.