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

Get Fork object for requested state

Get Fork object for requested state

get

Returns Fork object for state with given 'stateId'.

Path parameters
state_idstringRequired

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

Example: head
Responses
200
Success
application/json
get
GET /v1/<YOUR_API_KEY_HERE>//eth/v1/beacon/states/{state_id}/fork HTTP/1.1
Host: mainnet.ethereum.validationcloud.io
Accept: */*
{
  "execution_optimistic": null,
  "data": {
    "previous_version": "0x00000000",
    "current_version": "0x00000000",
    "epoch": "1"
  }
}

curl -X GET \
    "https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/states/head/fork" \
    -H "Content-Type: application/json"

Last updated

Was this helpful?