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

Contents

eth-v1-validator-blinded_blocks-{slot} REST API Endpoint

A blinded block is a block with only a transactions root, rather than a full transactions list. The Metadata in the response indicates the type of block produced, and the supported types of block will be added to as forks progress. Pre-Bellatrix, this endpoint will return a BeaconBlock.

Parameters:

  1. slot - string - The slot for which the block should be proposed
  2. randao_reveal - string - The validator's randao reveal value
  3. graffiti - string - The arbitrary data validator wants to include in block

Returns:

  1. version - string - The enumeration of possible values: [ phase0, altair, bellatrix ]
  2. data - object - The BeaconBlock object from the CL spec that contains the following values:

    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
Ready to get started? Create a free account