GET
/
validator
/
blocks
/
{slot}
curl --request GET \
  --url https://beacon-nd-422-757-666.p2pify.com/0a9d79d93fb2f4a4b1e04695da2b77a7/eth/v2/validator/blocks/{slot}
{
  "slot": 123,
  "parent_root": "<string>",
  "state_root": "<string>",
  "body": {}
}

The interactive example will return Slot already finalized unless you edit the parameters.

The /eth/v2/validator/blocks/{slot} method is an essential API endpoint in the Ethereum Beacon Chain, designed for validators to retrieve proposed block details for a specific slot. A slot in the Beacon Chain is a discrete time interval during which a new block can be proposed. This method is crucial for validators who are assigned to propose a block, enabling them to access the necessary data to perform their duties effectively.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • {slot}: This parameter specifies the slot number for which the block details are being requested. It is a required parameter and forms part of the endpoint URL.

Response

  • object — proposed block information.
    • slot — the slot number for which the block information is provided. This confirms the specific time interval the response data is relevant to.
    • proposer_index — the index of the validator who is responsible for proposing the block at this slot. This index identifies the specific validator within the Beacon Chain.
    • parent_root — the root of the parent block to which this proposed block will be attached. This is vital for maintaining the continuity of the blockchain.
    • state_root — the root of the beacon chain state after the proposed block’s effect. This state root ensures the integrity of the chain’s state post-block proposal.
    • body — the body of the proposed block, containing transactions, attestations, and other relevant data. This detailed information is crucial for validators and network participants to understand the contents and impact of the proposed block.

The /eth/v2/validator/blocks/{slot} method is a key tool for validators in the Ethereum network, allowing them to access detailed information about their block proposal responsibilities. This ensures they are well-prepared to contribute to the blockchain’s growth and stability.

Path Parameters

slot
integer
default:6244478
required

Slot for which to produce a new block

Query Parameters

randao_reveal
string
default:0xb73a92a633356ed71c3ff8c6a687d6a7b9a10db930f92f3b41a18e2dfc0c41535c522006ae3db8b1cb6fe7b3a93962f413c127de4eba22cb0b2d0065dc120156012e53038c3e29477342f9fac2b4368c054aa0d18c246c1463da03161f902f8e
required

RANDAO reveal for the block

graffiti
string

Graffiti for the block

Example:

"0x4c69676874686f7573652f76342e302e322d72632e302d333564386339380000"

Response

200
application/json
Successfully produced a new block
slot
integer
required
parent_root
string
required
state_root
string
required
body
object
required