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

Get block header.

Retrieves block header for given block id.

Example Request and Result for /v1/beacon/headers/{block_id}

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/beacon/headers/{block_id} endpoint. Additionally, we present the resulting response containing information about block header.

Parameters

FieldTypeDescription

block_id*

string

Block identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", <slot>, <hex encoded blockRoot with 0x prefix>.

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!

Get block header.

GET https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/headers/<block_id>/

Path Parameters

NameTypeDescription

block_id*

string

1783

{
  "execution_optimistic": false,
  "finalized": true,
  "data": {
    "header": {
      "message": {
        "slot": "1783",
        "proposer_index": "676810",
        "parent_root": "0x9e171b0ef5539cc5ed7bdb59dcfb5fb9b516dbf8b27f4d17fb7606414e2917cb",
        "state_root": "0x3ff92436715f8e0020be21eb908d68413ec40a73dc615f9802c95ca2667f742c",
        "body_root": "0x42060ba30dc4cfde4896dac21eb9375cd27f7570af7a9f12b79c33389c0c1d45"
      },
      "signature": "0xaae1fab24ac721b3b111f03c71b372f4f6c44aed125a1edb94c705818f1b0f1c163531b4dc71c3787e497ec5aadcac40173b542b0e66d8def89ad6228930d7dd30cd077e8d11b9f8b60e8d09418e62133fbb18cca82ccac3d9e704cae0e96ce1"
    },
    "root": "0xbf2483e3e4c9b41760bfde543e0d5c392b8963c42336334e0d9c9cf797d4f5c9",
    "canonical": true
  }
}

Curl Request example

curl -X 'GET' \
  'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/headers/1783' \
  -H 'accept: application/json'

Last updated