Skip to main content

eth-v1-validator-attestation_data


/eth/v1/validator/attestation_data

Produce an attestation data.

Requests the creation of an AttestationData by the beacon node.

If the block specified by the beacon_block_root answer is optimistic (i.e., the attestation attests to a block that has not been fully verified by an execution engine), a 503 error has to be returned.

Example Request and Result for /v1/validator/attestation_data

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/validator/attestation_data endpoint. Additionally, we present the resulting response containing information about a new attestation data.

Parameters

FieldTypeDescription

slot*

stringThe slot for which an attestation data should be created.

committee_index*

string

The committee index for which an attestation data should be created.

info

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!

Produce an attestation data.

GET https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/validator/attestation_data

Query Parameters

NameTypeDescription
slot*string1
committee_index*string1
{
"data": {
"slot": "1",
"index": "1",
"beacon_block_root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
"source": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
},
"target": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
}
}
}

Curl Request example

curl -X 'GET' \
'https://eth-mainnet.blastapi.io/<project_id>/eth/v1/validator/attestation_data?slot=1&committee_index=1' \
-H 'accept: application/json'