v1

latestOpenAPI 3.1.02026-07-2612501.4 MB

PostValidatorDutiesAttesterByEpoch

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/{apiKey}/eth/v1/validator/duties/attester/{epoch}

Path parameters

apiKeystring required
<style> .custom-style { color: #048FF4; } </style>

For higher throughput, please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>.

epochstring required
Example:1

Should only be allowed 1 epoch ahead

Request body

string[] required

Example request

[
  "1"
]

Response

Attester duties.

dependent_rootstring hex required

The block root that this response is dependent on.

execution_optimisticboolean required

True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value.

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"
    }
  ]
}