Join AWS, Dust Labs & OrangeDAO at QuickPitch. Win $80k — Apply Today.

Contents

eth-v1-beacon-states-{state_id}-fork REST API Endpoint

Parameters:

  1. state_id - string - 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:

  1. 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
  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 - The epoch number

Code Examples:

import requests

url = "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/states/head/fork"

payload={}
headers = {
  'accept': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
Ready to get started? Create a free account