POST /eth/v1/validator/duties/attester/{epoch}
Get attester duties.
Asks the beacon node to supply a list of attestation tasks for a specific epoch that validators are expected to complete. The duties should only need to be checked once every epoch, but they might need to be changed if there is a chain reorganization (of > MIN_SEED_LOOKAHEAD epochs).
You should keep an eye on head events and make sure the dependent root in this response matches for complete safety.
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.
Example Request and Result for /v1/validator/duties/attester/{epoch}
In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/validator/duties/attester/{epoch}
endpoint. Additionally, we present the resulting response containing information about the attester duties.
Parameters
Field | Type | Description |
---|---|---|
epoch* | string | Should only be allowed 1 epoch ahead |
The example in this section uses a non-existing project id.
Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.
Don't have a project id? Here's a straightforward guide on how to obtain one!
Get attester duties.
GET
https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/validator/duties/attester/{epoch}
Path Parameters
Name | Type | Description |
---|---|---|
epoch* | string | 1 |
Curl Request example
Last updated