Header Subquery

Used to query information about a block's header data

Description

The Header Subquery provides information about a past block's nonce, header, gasLimit, etc.

Limits

Maximum of 32 Header subqueries per Query.

Builder

buildHeaderSubquery(blockNum)

Examples

const headerSubquery: HeaderSubquery = buildHeaderSubquery(8000000)
    .field(HeaderField.ParentHash);
const headerSubquery: HeaderSubquery = buildHeaderSubquery(8000000)
    .field(HeaderField.GasUsed);
const headerSubquery: HeaderSubquery = buildHeaderSubquery(8000000)
    .logsBloom(3); // logs bloom filter at 3rd bytes32 chunk

Last updated