hmy_latestHeader
hmy_latestHeader
Parameters
None
Returns
blockHash
-String
- block hashblockNumber
-Number
- block numbershardID
-Number
- shard idleader
-String
- leader addressviewID
-Number
- current blockchain view of validatorsepoch
-Number
- blockchain epochtimestamp
-Date
- block generation timestamp dateunixtime
-Number
- block generation time in Unix timelastCommitSig
-String
- BLS validators signature for the blocklastCommitBitmap
-String
- last commit bitmap for block signers
Sample Curl Request
curl --location --request POST 'https://api.s0.b.hmny.io/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "hmy_latestHeader",
"params": [],
"id": 1
}'
Same Curl Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x4d5acd18f95ed1527a530c6427b518c4cf469912bfcc6df830efc36879c25170",
"blockNumber": 80455,
"shardID": 0,
"leader": "one1yc06ghr2p8xnl2380kpfayweguuhxdtupkhqzw",
"viewID": 80452,
"epoch": 178,
"timestamp": "2020-01-30 20:08:32 +0000 UTC",
"unixtime": 1580414912,
"lastCommitSig": "7e8cf8c683bf6433fb7da19ff0597e3b2fc631bc350b5fe805401cb3133cc466b991a0b91a898abb5bfb566f5607fb18064be8916d4e1d8217ad3880b7b7b0f79fdac4cd9dd8e9f82c438fb4e2025aee75beaeeb19b96ae0f63f6f9d63475289",
"lastCommitBitmap": "ff03"
}
}
Last updated
Was this helpful?