Skip to content

RpcOptionalHeader (TypedDict)

Bases: TypedDict

Represents a block header with optional fields populated based on verbosity level.

Fields are included based on the RpcDataVerbosityLevel specified in the request. Each attribute is only populated when the verbosity level meets or exceeds the required level for that field.

ATTRIBUTE DESCRIPTION
hash

The block hash. Level: None (always included).

TYPE: str | None

version

Block version number. Level: Low.

TYPE: int | None

parentsByLevel

Compressed parent block hashes by level. Level: High.

TYPE: list[tuple[int, list[str]]] | None

hashMerkleRoot

Merkle root of block hashes. Level: High.

TYPE: str | None

acceptedIdMerkleRoot

Merkle root of accepted transaction IDs. Level: High.

TYPE: str | None

utxoCommitment

UTXO commitment hash. Level: Full.

TYPE: str | None

timestamp

Block timestamp in milliseconds. Level: Low.

TYPE: int | None

bits

Difficulty target bits. Level: Low.

TYPE: int | None

nonce

Block nonce. Level: Low.

TYPE: int | None

daaScore

Difficulty adjustment algorithm score. Level: Low.

TYPE: int | None

blueWork

Cumulative blue work. Level: Low.

TYPE: str | None

blueScore

Blue score of the block. Level: Low.

TYPE: int | None

pruningPoint

Pruning point block hash. Level: Full.

TYPE: str | None

acceptedIdMerkleRoot instance-attribute

acceptedIdMerkleRoot: str | None

bits instance-attribute

bits: int | None

blueScore instance-attribute

blueScore: int | None

blueWork instance-attribute

blueWork: str | None

daaScore instance-attribute

daaScore: int | None

hash instance-attribute

hash: str | None

hashMerkleRoot instance-attribute

hashMerkleRoot: str | None

nonce instance-attribute

nonce: int | None

parentsByLevel instance-attribute

parentsByLevel: list[tuple[int, list[str]]] | None

pruningPoint instance-attribute

pruningPoint: str | None

timestamp instance-attribute

timestamp: int | None

utxoCommitment instance-attribute

utxoCommitment: str | None

version instance-attribute

version: int | None