Skip to main content

/blocks/head/header REST API Endpoint

Returns the most recently finalized block's header.

Updated on
Sep 02, 2024

Path Parameters

Query Parameters

finalized
boolean

Boolean representing whether or not to get the finalized head. If it is not set the value defaults to true. When set to false it will attempt to get the newest known block, which may not be finalized.

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

(Optional) 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.

consensus
array

The consensus engine identifier

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