Join AWS, Dust Labs & OrangeDAO at QuickPitch. Win $80k — Apply Today.
Parameters:
Returns:
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 - object - The BeaconBlockBody object from the CL spec
randao_reveal - string - The RanDAO reveal value provided by the validator
eth1_data - object - The Eth1Data object from the CL spec
deposit_root - string - The root of the deposit tree
deposit_count - string - The total number of deposits
block_hash - string - The Ethereum 1.x block hash
graffiti - string - The graffiti value
proposer_slashings - array - An array of ProposerSlashing objects from the CL spec
attester_slashings - array - An array of AttesterSlashing objects from the CL spec
attestations - array - An array of Attestation objects from the CL spec
deposits - array - An array of Deposit objects from the CL spec
voluntary_exits - array - An array of SignedVoluntaryExit objects from the CL spec
Code Examples:
require "uri" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/validator/blinded_blocks/1?randao_reveal=RANDAO_REVEAL&graffiti=GRAFFITI") 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/validator/blinded_blocks/1?randao_reveal=RANDAO_REVEAL&graffiti=GRAFFITI" \ -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/validator/blinded_blocks/1?randao_reveal=RANDAO_REVEAL&graffiti=GRAFFITI", 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/validator/blinded_blocks/1?randao_reveal=RANDAO_REVEAL&graffiti=GRAFFITI" payload={} headers = { 'accept': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)