Skip to main content

/blocks/{blockId}/header REST API Endpoint

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

Updated on
Sep 2, 2024

/blocks/{blockId}/header REST API Endpoint

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
1
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/blocks/0x409d0bfe677594d7558101d574633d5808a6fc373cbd964ef236f00941f290ee/header' \
2
--header 'Accept: application/json'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free