/eth/v1/beacon/blocks/{block_id}/attestations
Get block attestations
Retrieves attestation included in requested block.
Path parameters
block_idstringRequiredExample:
Block identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", <slot>, <hex encoded blockRoot with 0x prefix>.
head
Responses
200
Success
application/json
400
The block ID supplied could not be parsed
application/json
404
Block not found
application/json
500
Beacon node internal error.
application/json
get
GET /v1/<YOUR_API_KEY_HERE>//eth/v1/beacon/blocks/{block_id}/attestations HTTP/1.1
Host: mainnet.ethereum.validationcloud.io
Accept: */*
{
"execution_optimistic": null,
"data": [
{
"aggregation_bits": "0x01",
"signature": null,
"data": {
"slot": "1",
"index": "1",
"beacon_block_root": null,
"source": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
},
"target": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
}
}
}
]
}
curl -X GET \
"https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/blocks/head/attestations" \
-H "Content-Type: application/json"
Last updated
Was this helpful?