Skip to main content

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

Returns a Fork object for state with the given 'stateId'.

Updated on
Dec 17, 2024

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

Parameters

state_id
string
REQUIRED
The state identifier. It can be one of: head (canonical head in node's view), genesis, finalized, justified, slot and stateRoot (hex encoded stateRoot with 0x prefix)

Returns

execution_optimistic
boolean
It's true if the response references an unverified execution payload. The optimistic information may be invalidated at a later time. If the field is not present, assume the false value
finalized
boolean
A boolean field indicating whether the current state has been finalized
data
object
The fork object from the CL spec with the following values:
previous_version
string
A fork version number
current_version
string
A fork version number
epoch
string
The epoch number
Request
1
curl -X GET \
2
"https://docs-demo.vana-mainnet.quiknode.pro/eth/v1/beacon/states/1/fork" \
3
-H "accept: application/json"
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free