Get Fork object for requested state
Returns Fork object for state with given 'stateId'.
Parameters
Name | Required | Type | Detail |
---|---|---|---|
state_id | ✅ | String | State 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"
}
}