We're now supporting Polygon zkEVM!
Learn more here.
Parameters:
Returns:
root - string - The root hash
canonical - boolean - The head in node's view
header - array - The SignedBeaconBlockHeader object envelope from the CL spec
message - array - The BeaconBlockHeader object from the CL spec
slot - string - The slot to which this block corresponds
proposer_index - string - The index of validator in validator registry
parent_root - string - The signing merkle root of the parent BeaconBlock
state_root - string - The tree hash merkle root of the BeaconState for the BeaconBlock
body_root - string - The tree hash merkle root of the BeaconBlockBody for the BeaconBlock
signature - string - The signature
Code Examples:
require "uri" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/headers/head") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Get.new(url) request["accept"] = "application/json" response = https.request(request) puts response.read_body
curl -X GET \ "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/headers/head" \ -H "accept: application/json"
var myHeaders = new Headers(); myHeaders.append("accept", "application/json"); var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' }; fetch("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/headers/head", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
import requests url = "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/headers/head" payload={} headers = { 'accept': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)