/eth/v1/beacon/states/{state_id}/finality_checkpoints

Get state finality checkpoints

Returns finality checkpoints for state with given 'stateId'. In case finality is not yet achieved, checkpoint should return epoch 0 and ZERO_HASH as root.

Parameters

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

Result

Returns finality checkpoints for state with given 'stateId'. In case finality is not yet achieved, checkpoint should return epoch 0 and ZERO_HASH as root.

Example

Request

curl <your-endpoint>/eth/v1/beacon/states/head/finality_checkpoints

Return

{
  "execution_optimistic": false,
  "data": {
    "previous_justified": {
      "epoch": "1",
      "root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
    },
    "current_justified": {
      "epoch": "1",
      "root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
    },
    "finalized": {
      "epoch": "1",
      "root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
    }
  }
}