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

Get Fork object for requested state

Returns Fork object for state with given 'stateId'.

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 Fork object for state with given 'stateId'.

Example

Request

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

Return

{
  "execution_optimistic": false,
  "data": {
    "previous_version": "0x00000000",
    "current_version": "0x00000000",
    "epoch": "1"
  }
}