Skip to main content

/eth/v1/beacon/headers/{block_id} RPC Method

Retrieves block header for given block id.

Updated on
Oct 4, 2023

/eth/v1/beacon/headers/{block_id} RPC Method

Parameters

block_id
string
REQUIRED
The state identifier. It can be a slot number, blockRoot (encoded in hexadecimal format) or tags (Supported tags include - head (canonical head in node's view), genesis, finalized or justified)

Returns

execution_optimistic
Boolean
It's true if the response references an unverified execution payload. The optimistic information may be invalidated at a later time. If the field is not present, assume the false value
data
The object with the following fields:
root
string
The root hash
canonical
boolean
The head in node's view
header
array
The SignedBeaconBlockHeader object envelope from the CL spec
message
array
The BeaconBlockHeader object from the CL spec
slot
string
The slot to which this block corresponds
proposer_index
string
The index of validator in validator registry
parent_root
string
The signing merkle root of the parent BeaconBlock
state_root
string
The tree hash merkle root of the BeaconState for the BeaconBlock
body_root
string
The tree hash merkle root of the BeaconBlockBody for the BeaconBlock
signature
string
The signature
Request
1
curl -X GET \
2
"https://docs-demo.quiknode.pro/eth/v1/beacon/headers/head" \
3
-H "accept: application/json"
4
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free