---
title: "Get block"
method: GET
path: "/eth/v2/beacon/blocks/{block_id}"
tags: ["Beacon"]
---

# Get block

`GET /eth/v2/beacon/blocks/{block_id}`

## 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/beacon/blocks/{block_id}`
- Auth: none declared

Retrieves block details for given block id.
Depending on `Accept` header it can be returned either as json or as bytes serialized by SSZ

## Path parameters

- `block_id` string, required

## Response `200`

Successful response

- object
  - `version` 'phase0' | 'altair' | 'bellatrix'
  - `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.
  - `data` union
    - object: The [`SignedBeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#signedbeaconblock) object envelope from the CL spec.
      - `message` object: The [`BeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#beaconblock) object from the CL spec.
        - `slot` string: The slot to which this block corresponds.
        - `proposer_index` string: Index of validator in validator registry.
        - `parent_root` string: The signing merkle root of the parent `BeaconBlock`.
        - `state_root` string: The tree hash merkle root of the `BeaconState` for the `BeaconBlock`.
        - `body` object: The [`BeaconBlockBody`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#beaconblockbody) object from the CL spec.
          - `randao_reveal` string: The RanDAO reveal value provided by the validator.
          - `eth1_data` object: The [`Eth1Data`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#eth1data) object from the CL spec.
            - `deposit_root` string: Root of the deposit tree.
            - `deposit_count` string: Total number of deposits.
            - `block_hash` string: Ethereum 1.x block hash.
          - `graffiti` string
          - `proposer_slashings` object[]
            - `signed_header_1` object: The [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#signedbeaconblockheader) object envelope from the CL spec.
              - …
            - `signed_header_2` object: The [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#signedbeaconblockheader) object envelope from the CL spec.
              - …
          - `attester_slashings` object[]
            - `attestation_1` object: The [`IndexedAttestation`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#indexedattestation) object from the CL spec.
              - …
            - `attestation_2` object: The [`IndexedAttestation`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#indexedattestation) object from the CL spec.
              - …
          - `attestations` object[]
            - `aggregation_bits` string: Attester aggregation bits.
            - `signature` string: BLS aggregate signature.
            - `data` object: The [`AttestationData`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#attestationdata) object from the CL spec.
              - …
          - `deposits` object[]
            - `proof` string[]: Branch in the deposit tree.
            - `data` object: The [`DepositData`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#depositdata) object from the CL spec.
              - …
          - `voluntary_exits` object[]
            - `message` object: The [`VoluntaryExit`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#voluntaryexit) object from the CL spec.
              - …
            - `signature` string
      - `signature` string
    - object: The [`SignedBeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.1.0-alpha.3/specs/altair/beacon-chain.md#signedbeaconblock) object envelope from the CL Altair spec.
      - `message` object: The [`BeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.1.0-alpha.3/specs/altair/beacon-chain.md#beaconblock) object from the CL Altair spec.
        - `slot` string: The slot to which this block corresponds.
        - `proposer_index` string: Index of validator in validator registry.
        - `parent_root` string: The signing merkle root of the parent `BeaconBlock`.
        - `state_root` string: The tree hash merkle root of the `BeaconState` for the `BeaconBlock`.
        - `body` object: The [`BeaconBlockBody`](https://github.com/ethereum/consensus-specs/blob/v1.1.0-alpha.3/specs/altair/beacon-chain.md#beaconblockbody) object from the CL Altair spec.
          - `randao_reveal` string: The RanDAO reveal value provided by the validator.
          - `eth1_data` object: The [`Eth1Data`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#eth1data) object from the CL spec.
            - `deposit_root` string: Root of the deposit tree.
            - `deposit_count` string: Total number of deposits.
            - `block_hash` string: Ethereum 1.x block hash.
          - `graffiti` string
          - `proposer_slashings` object[]
            - `signed_header_1` object: The [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#signedbeaconblockheader) object envelope from the CL spec.
              - …
            - `signed_header_2` object: The [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#signedbeaconblockheader) object envelope from the CL spec.
              - …
          - `attester_slashings` object[]
            - `attestation_1` object: The [`IndexedAttestation`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#indexedattestation) object from the CL spec.
              - …
            - `attestation_2` object: The [`IndexedAttestation`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#indexedattestation) object from the CL spec.
              - …
          - `attestations` object[]
            - `aggregation_bits` string: Attester aggregation bits.
            - `signature` string: BLS aggregate signature.
            - `data` object: The [`AttestationData`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#attestationdata) object from the CL spec.
              - …
          - `deposits` object[]
            - `proof` string[]: Branch in the deposit tree.
            - `data` object: The [`DepositData`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#depositdata) object from the CL spec.
              - …
          - `voluntary_exits` object[]
            - `message` object: The [`VoluntaryExit`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#voluntaryexit) object from the CL spec.
              - …
            - `signature` string
          - `sync_aggregate` object: The [`SyncAggregate`](https://github.com/ethereum/consensus-specs/blob/v1.1.0-alpha.1/specs/altair/beacon-chain.md#syncaggregate) object from the CL Altair spec.
            - `sync_committee_bits` string: Aggregation bits of sync
            - `sync_committee_signature` string
      - `signature` string
    - object: The [`SignedBeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.1.9/specs/bellatrix/beacon-chain.md#signedbeaconblock) object envelope from the CL Bellatrix spec.
      - `message` object: The [`BeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.1.9/specs/bellatrix/beacon-chain.md#beaconblock) object from the CL Bellatrix spec.
        - `slot` string: The slot to which this block corresponds.
        - `proposer_index` string: Index of validator in validator registry.
        - `parent_root` string: The signing merkle root of the parent `BeaconBlock`.
        - `state_root` string: The tree hash merkle root of the `BeaconState` for the `BeaconBlock`.
        - `body` object: The [`BeaconBlockBody`](https://github.com/ethereum/consensus-specs/blob/v1.1.9/specs/bellatrix/beacon-chain.md#beaconblockbody) object from the CL Bellatrix spec.
          - `randao_reveal` string: The RanDAO reveal value provided by the validator.
          - `eth1_data` object: The [`Eth1Data`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#eth1data) object from the CL spec.
            - `deposit_root` string: Root of the deposit tree.
            - `deposit_count` string: Total number of deposits.
            - `block_hash` string: Ethereum 1.x block hash.
          - `graffiti` string
          - `proposer_slashings` object[]
            - `signed_header_1` object: The [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#signedbeaconblockheader) object envelope from the CL spec.
              - …
            - `signed_header_2` object: The [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#signedbeaconblockheader) object envelope from the CL spec.
              - …
          - `attester_slashings` object[]
            - `attestation_1` object: The [`IndexedAttestation`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#indexedattestation) object from the CL spec.
              - …
            - `attestation_2` object: The [`IndexedAttestation`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#indexedattestation) object from the CL spec.
              - …
          - `attestations` object[]
            - `aggregation_bits` string: Attester aggregation bits.
            - `signature` string: BLS aggregate signature.
            - `data` object: The [`AttestationData`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#attestationdata) object from the CL spec.
              - …
          - `deposits` object[]
            - `proof` string[]: Branch in the deposit tree.
            - `data` object: The [`DepositData`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#depositdata) object from the CL spec.
              - …
          - `voluntary_exits` object[]
            - `message` object: The [`VoluntaryExit`](https://github.com/ethereum/consensus-specs/blob/v1.0.1/specs/phase0/beacon-chain.md#voluntaryexit) object from the CL spec.
              - …
            - `signature` string
          - `sync_aggregate` object: The [`SyncAggregate`](https://github.com/ethereum/consensus-specs/blob/v1.1.0-alpha.1/specs/altair/beacon-chain.md#syncaggregate) object from the CL Altair spec.
            - `sync_committee_bits` string: Aggregation bits of sync
            - `sync_committee_signature` string
          - `execution_payload` object: The [`ExecutionPayload`](https://github.com/ethereum/consensus-specs/blob/v1.1.9/specs/bellatrix/beacon-chain.md#executionpayload) object from the CL Bellatrix spec.
            - `parent_hash` string
            - `fee_recipient` string: An address on the execution (Ethereum 1) network.
            - `state_root` string
            - `receipts_root` string
            - `logs_bloom` string
            - `prev_randao` string
            - `block_number` string
            - `gas_limit` string
            - `gas_used` string
            - `timestamp` string
            - `extra_data` string: Extra data on the execution (Ethereum 1) network.
            - `base_fee_per_gas` string
            - `block_hash` string
            - `transactions` string[]
      - `signature` string

## Other responses

- `400`: The block ID supplied could not be parsed
- `404`: Block not found
- `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)
