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