/eth/v1/debug/fork_choice

Get fork choice array

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

Example Request and Result for /v1/debug/fork_choice

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

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 choise array

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

{
  "justified_checkpoint": {
    "epoch": "1",
    "root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
  },
  "finalized_checkpoint": {
    "epoch": "1",
    "root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
  },
  "fork_choice_nodes": [
    {
      "slot": "1",
      "block_root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
      "parent_root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
      "justified_epoch": "1",
      "finalized_epoch": "1",
      "weight": "1",
      "validity": "valid",
      "execution_block_hash": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
      "extra_data": {}
    }
  ],
  "extra_data": {}
}

Curl Request example

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

Last updated