eth_getBalance
Returns balance of the given account
Parameters
1、The address to get the balance of.
2、(optional) If you pass this parameter it will not use the default block set with web3.eth.defaultBlock. Pre-defined block numbers as "earliest"
,"latest" and "pending"
can also be used.
3、(optional) Optional callback, returns an error object as first parameter and the result as second.
Returns
The current balance for the given address in wei.
Example
Last updated