/eth/v2/debug/beacon/heads

Get fork choice leaves

Obtains every potential chain head (fork choice tree leaf).

Example Request and Result for /v2/debug/beacon/heads

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v2/debug/beacon/heads endpoint. Additionally, we present the resulting response containing information about the choice leaves.

Parameters

  • none

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 fork choice leaves

GET https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v2/debug/beacon/heads

{
  "data": [
    {
      "root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
      "slot": "1",
      "execution_optimistic": false
    }
  ]
}

Curl Request example

curl -X 'GET' \
  'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v2/debug/beacon/head' \
  -H 'accept: application/json'

Last updated