---
title: "Get fork choice leaves"
method: GET
path: "/eth/v2/debug/beacon/heads"
tags: ["Debug"]
---

# Get fork choice leaves

`GET /eth/v2/debug/beacon/heads`

## Request

- Base URL: `eth2-beacon-mainnet.nodereal.io/v1/api_key` (relative, and the document’s source URL is not known)
- URL: `eth2-beacon-mainnet.nodereal.io/v1/api_key/eth/v2/debug/beacon/heads`
- Auth: none declared

Retrieves all possible chain heads (leaves of fork choice tree).

## Response `200`

Success

- object
  - `data` object[]
    - `root` string
    - `slot` string
    - `execution_optimistic` boolean: True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value.

## Other responses

- `500`: Beacon node internal error.

---

[API](https://skmtc.dev/nodereal/apis/eth-beacon-node-api.md) - [All operations](https://skmtc.dev/nodereal/apis/eth-beacon-node-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nodereal/apis/eth-beacon-node-api/revisions/1878ea8657a1?raw)
