Skip to main content

/blocks/{blockId}/header REST API Endpoint

Get a block's header by its height or hash.

Updated on
Sep 02, 2024

Path Parameters

blockId
string
REQUIRED

Block identifier, as the block height or block hash.

Returns

number
string

The block number in hexadecimal format

parentHash
string

The hash of the parent block, which links the current block to its predecessor

stateRoot
string

The hash of the state trie root after all extrinsics in the block have been executed

extrinsicRoot
string

The Merkle root of all extrinsics included in the block

digest
object

The digest object which contains the following fields:

logs
array

A list of logs that provide consensus-specific information

preRuntime
array

The log entry containing consensus engine-specific data before block execution

seal
array

The log entry containing the block's final seal, used to verify the block's validity.

extrinsics
string

A list of extrinsics (transactions) included in the block

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