ValidatorRequiredApi
Validator
Get attester duties
Requests the beacon node to provide a set of attestation duties, which should be performed by validators, for a particular epoch. Duties should only need to be checked once per epoch, however a chain reorganization (of > MIN_SEED_LOOKAHEAD epochs) could occur, resulting in a change of duties. For full safety, you should monitor head events and confirm the dependent root in this response matches:
- event.previous_duty_dependent_root when compute_epoch_at_slot(event.slot) == epoch
- event.current_duty_dependent_root when compute_epoch_at_slot(event.slot) + 1 == epoch
- event.block otherwise
The dependent_root value is get_block_root_at_slot(state, compute_start_slot_at_epoch(epoch - 1) - 1) or the genesis block root in the case of underflow.
post/eth/v1/validator/duties/attester/{epoch}
Request
- Base URL: http://public-mainnet-node.ethereum.org
- URL: http://public-mainnet-node.ethereum.org/eth/v1/validator/duties/attester/{epoch}
- Auth: none declared
Path parameters
epochstring required
Example:1
Should only be allowed 1 epoch ahead
Request body
string[] required
Example request
[ "1" ]
Response
Success response
Example response
{
"dependent_root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
"data": [
{
"pubkey": "0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a",
"validator_index": "1",
"committee_index": "1",
"committee_length": "1",
"committees_at_slot": "1",
"validator_committee_index": "1",
"slot": "1"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.