Skip to main content

chain_getHeader RPC Method

Retrieves the header for a specific block.

Updated on
Oct 04, 2023

Parameters

BlockHash
string

The hash of the block for which you want to retrieve the header information. If not provided, the request will return the header of the latest block on the chain

Returns

result
object

An object representing the header information of the requested block:

parentHash
string

The hash of the parent block, which is the previous block in the chain

number
string

The block number or height in the blockchain sequence

stateRoot
string

The root hash of the state trie after applying the block's transactions

extrinsicsRoot
string

The root hash of the trie containing the extrinsics (transactions) in the block

digest
array | object

An array containing additional data attached to the block, such as logs

logs
array

An array of digest log entries (hex strings)

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free