hmyv2_latestHeader
Parameters
None
Result
Object
* blockHash
- String
: Block hash
* blockNumber
- Number
: Block number
* shardID
- Number
: Shard ID
* leader
- String
: Wallet address of leader that proposed this block if prestaking, otherwise sha256 hash of leader's public bls key
* viewID
- Number
: View ID of the block
* epoch
- Number
: Epoch of block
* timestamp
- String
: Timestamp that the block was finalized
* unixtime
- Number
: Timestamp that the block was finalized in Unix time
* lastCommitSig
- String
: Hex representation of aggregated signatures of the previous block
* lastCommitBitmap
- String
: Hex representatino of the aggregated signature bitmap of the previous block
Request Body
{"jsonrpc"=>"2.0", "id"=>1, "method"=>"hmyv2_latestHeader"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"jsonrpc":"2.0","id":1,"result":{"blockHash":"0x66a822f6b0006459f8e8a108912511a6e7bb639a69c128043df26bfbcb417704","blockNumber":5601679,"crossLinks":[{"block-number":5623235,"epoch-number":321,"hash":"0x9030e70ce4a32610817b9019ce2cd27f938f4f98f5bd2fb1b74387d713e205af","shard-id":1,"signature":"d84a71df23d5ef630892a2f0a7cf34464679620a6b3a3c82452d4acb62f9162c7e807e9960557dc4589045d0ea001b188a3bd4a2343d4e750b08f49340efefb901ac8b7788ef4dabf64f50a1f7efc913c499bbc5fad643db7e6f0692cf4d3c09","signature-bitmap":"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03","view-id":5623429},{"block-number":5661242,"epoch-number":321,"hash":"0xddd398aecaf931cf091e787dcb4a2631bde2d342915f970766a3fce0d3d818a3","shard-id":2,"signature":"663fb4519986a9bbb71ddc0b378f471814b6ab6ca678780ce7af6c30285e1cf48d2de5352fe9449a68fec1be2a0c10083e9d75b5fe8fda3a45f16b803c61b2c333b2b35460a9a087644917b49368d2f6f8bf2d0bfd5ce39236399844d67b8a8a","signature-bitmap":"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff07","view-id":5661413},{"block-number":5644969,"epoch-number":321,"hash":"0x695c3c3b35e56a94201c25f84d589ad0de4d390623649eeb643be6c16ed465ba","shard-id":3,"signature":"fe7389c2457b450e48c54f8b5d145e971c4d76a6c2a532fec2581fa2bf9d1bd5b747e3dc594674e311d2389300e5140629ecdd793ed7648c007d5978a6eca81fc4240af59d582ec2d52bfeff230d24ea3de8357a681ba56c7857e5efe9caba95","signature-bitmap":"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03","view-id":5645162}],"epoch":321,"lastCommitBitmap":"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01","lastCommitSig":"e0e3426d73f2bf77fd1881d27c6fc4adbc81ad3575f649be2b4d499f9feff19b2369822805751b8fea1e131b2004bb153addddfa81578b2ffa09851d65f38cc023ac2b0f03f252c60c75bc03dd3b411a6db03fa916027c274aeb64b2b56e808f","leader":"one1gh043zc95e6mtutwy5a2zhvsxv7lnlklkj42ux","shardID":0,"timestamp":"2020-10-27 13:15:16 +0000 UTC","unixtime":1603804516,"viewID":5601864}}