/eth/v1/beacon/headers
Get block headers
Retrieves block headers matching given query. By default it will fetch current head slot blocks.
Query parameters
slotall ofOptional
stringOptionalExample:
1anyOptional
parent_rootall ofOptional
stringOptionalExample:
0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2Pattern: ^0x[a-fA-F0-9]{64}$anyOptional
Responses
200
Success
application/json
400
The block ID supplied could not be parsed
application/json
500
Beacon node internal error.
application/json
get
/eth/v1/beacon/headerscurl -X GET \
"https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/headers" \
-H "Content-Type: application/json"curl -X GET \
"https://sepolia.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/headers" \
-H "Content-Type: application/json"Last updated
Was this helpful?