@oasisprotocol/client
    Preparing search index...

    Interface ConsensusBlock

    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;
        size?: longnum;
        state_root: StorageRoot;
        time: longnum;
    }
    Index
    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.

    size?: longnum

    Size is the size of the block in bytes.

    state_root: StorageRoot

    StateRoot is the Merkle root of the consensus state tree.

    time: longnum

    Time is the second-granular consensus time.