GetTransactionCount
Given an account address, returns the number of transactions the account has made.
String
- Account address
String
- Block number to query for transaction count. Usually latest
, which uses the most recent block.
String
- Number of transactions the account has made.
String
- Account address
Number
- Block number to query for transaction count.
Number
- Number of transactions the account has made.
GetBalance
Get latest balance of an address.
String
- The address to get the balance of.
String
- Block to get query for balance
String
- The current balance for the given address in ATTO.
Sample Curl Response
String
- The address to get the balance of
String
- The current big.Int balance for the given address.
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)"
hmy_getBalanceByBlockNumber
Get the balance of an address at a given block.
String
- The address to get the balance of
String
- Block to get query for balance
String
- The current balance for the given address in ATTO.
Sample Curl Response
String
- The address to get the balance of
Number
- Block to get query for balance
String
- The big.Int balance for the given address on a particular block.
Sample Curl Response