/eth/v1/beacon/headers
Get block headers.
Finds block headers that match the supplied query. It will automatically retrieve the current head slot blocks.
Example Request and Result for /v1/beacon/headers
In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/beacon/headers
endpoint. Additionally, we present the resulting response containing information about block headers.
Parameters
Field | Type | Description |
---|---|---|
slot | string | Restrict returned values to those matching the supplied slot. |
parent_root | string | Epoch to fetch the RANDAO mix for. Default: state's current epoch. |
info
The example in this section uses a non-existing project id.
Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.
Don't have a project id? Here's a straightforward guide on how to obtain one!
Curl Request example
curl -X 'GET' \
'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/headers?slot=32&parent_root=0xf7884f046f0200cebff4b5ea50a9c015c8352d90b3936b3898ae5f736f4f598f' \
-H 'accept: application/json'