Skip to main content

chain_subscribeNewHeads RPC Method

Retrieves the best header via subscription.

Updated on
Apr 01, 2026

Parameters

subscription
string

Allows the client to manage the subscription

Returns

parentHash
string

The hash of the parent block header

number
string

The block number of the best header

stateRoot
string

The hash of the state root of the best header

extrinsicsRoot
string

The hash of the extrinsic root of the best header

digest
object

An object containing additional information about the header, such as logs

logs
array

An array of log messages associated with the header

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": "0x1887ec8b9589ccad00000000000532da",
4
"id": 1
5
}
1
{
2
"jsonrpc": "2.0",
3
"result": "0x1887ec8b9589ccad00000000000532da",
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free