/eth/v1/validator/attestation_data

Produce an attestation data

Request the beacon node to produce an AttestationData.

Parameters

NameRequiredTypeDetail
slotString (Query)The slot for which attestation data should be created.
committee_indexString (Query)The committee index for which attestation data should be created.

Result

Return an attestation data

Example

Request

curl <your-endpoint>/eth/v1/validator/attestation_data?slot=4805183&committee_index=1

Return

On success

{
    "data": {
        "slot": "4805183",
        "index": "1",
        "beacon_block_root": "0xd17e7671d027f848779467e34939fdf5040812aa590d1463f40a2aee05be68ba",
        "source": {
            "epoch": "150160",
            "root": "0x4974c84e2b213e6ef0b3ecad72efb1c03d82e02a0c7d63879e83bceb6fff99ad"
        },
        "target": {
            "epoch": "150161",
            "root": "0x483af4b110e726bd17a20469479b776b840cdff6a44071a33ac2cd958da1c38b"
        }
    }
}