Build more with QuickNode - New pricing plans and a free tier! Read the press release

Contents

eth-v1-beacon-states-{state_id}-fork RPC method

Parameters:

  1. state_id - String - (Required) State identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", {slot}, {hex encoded stateRoot with 0x prefix}.

Returns:

  1. execution_optimistic - boolean - True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value.
  2. 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 - Epoch number.

Code Examples:

curl -X GET \
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/states/head/fork" \
    -H "accept: application/json"
Ready to try QuickNode? Get Started