Block is a consensus block.

While some common fields are provided, most of the structure is dependent on the actual backend implementation.

interface ConsensusBlock {
    hash: Uint8Array;
    height: longnum;
    meta: unknown;
    state_root: StorageRoot;
    time: longnum;
}

Properties

hash: Uint8Array

Hash contains the block header hash.

height: longnum

Height contains the block height.

meta: unknown

Meta contains the consensus backend specific block metadata.

state_root: StorageRoot

StateRoot is the Merkle root of the consensus state tree.

time: longnum

Time is the second-granular consensus time.