Skip to main content

Type Alias: Block<T>

type Block<T>: object;

The block type. Type T determines whether the block contains processed messages or just message hashes.

Type Parameters

Type ParameterDefault type

T

false

Type declaration

hash

hash: Hex;

inMessagesRoot

inMessagesRoot: Hex;

messages

messages: T extends true ? ProcessedMessage[] : Hex[];

number

number: number;

parentHash

parentHash: Hex;

receiptsRoot

receiptsRoot: Hex;

shardId

shardId: number;

Defined

@nilfoundation/niljs/src/types/Block.ts:8