Parameters
- IsSealedbooleanREQUIRED
It specifies whether the block should be sealed or unsealed. If set to true, the method retrieves the latest sealed block header; if set to false, it retrieves the latest unsealed block header
Returns
- blockobject
An object which contains the information about the block with the following fields
- idstring
The unique identifier of the block
- parent_idstring
he identifier of the parent block
- heightinteger
The height of the blocks
- timestampobject
The details of the timestamp, containing the following properties:
- secondsinteger
The number of seconds in the timestamp
- nanosinteger
The number of nanoseconds in the timestamp
- payload_hashstring
The hash of the block's payload
- viewinteger
The view number associated with the block
- parent_voter_idsstring
A list of voter IDs associated with the parent block
- parent_voter_sig_datastring
The signature data associated with the parent voter IDs
- proposer_idstring
The ID of the block's proposer
- proposer_sig_datastring
The signature data associated with the block's proposer
- chain_idstring
The ID of the blockchain
- parent_voter_indicesstring
The indices of the parent block's voters