Skip to main content

eth-v2-beacon-blocks-{block_id} RPC Method

Retrieves the block details for a given block id.

Updated on
Oct 4, 2023

eth-v2-beacon-blocks-{block_id} RPC Method

Parameters

block_id
string
The state identifier. It can be one of: head (canonical head in node's view), genesis, finalized, justified, slot and blockRoot {hex encoded blockRoot with 0x prefix}

Returns

version
string
The enumeration. The possible values could be: phase0, altair, bellatrix
data
The object with the following values:
message
object
The BeaconBlock object from the CL spec
slot
string
The slot to which this block corresponds
proposer_index
string
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
object
The BeaconBlockBody object from the CL spec
signature
string
The signature
Request
1
curl -X GET \
2
"https://docs-demo.xdai.quiknode.pro/eth/v2/beacon/blocks/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