hmy_getBalance
GetBalance
Get latest balance of an address.
API v1
Parameters
String
- The address to get the balance of.String
- Block to get query for balance
Returns
String
- The current balance for the given address in ATTO.
Sample Curl Request
Sample Curl Response
API v2
Parameters
String
- The address to get the balance of
Returns
String
- The current big.Int balance for the given address.
Sample Curl Request
Sample Curl Response
If Node.js is installed on your system, one easy way to convert hexadecimal balances into a more readable decimal format is to run node -e "console.log(<balance> / 1e18)"
Last updated