/eth/v2/beacon/blocks/{block_id}
Get block attestations
Last updated
Was this helpful?
Get block attestations
Last updated
Was this helpful?
curl -X GET \
"https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v2/beacon/blocks/head" \
-H "Content-Type: application/json"
curl -X GET \
"https://sepolia.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v2/beacon/blocks/head" \
-H "Content-Type: application/json"
Returns the complete SignedBeaconBlock
for a given block ID.
Depending on the Accept
header it can be returned either as JSON or SSZ-serialized bytes.
Block identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", <slot>, <hex encoded blockRoot with 0x prefix>.
head
curl -L \
--url 'https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>//eth/v1/beacon/blocks/{block_id}'
{
"data": {
"message": {
"slot": null,
"proposer_index": null,
"parent_root": null,
"state_root": null,
"body": {
"randao_reveal": null,
"eth1_data": {
"deposit_root": null,
"deposit_count": null,
"block_hash": null
},
"graffiti": "text",
"proposer_slashings": [
{
"signed_header_1": {
"message": {
"slot": null,
"proposer_index": null,
"parent_root": null,
"state_root": null,
"body_root": null
},
"signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
},
"signed_header_2": {
"message": {
"slot": null,
"proposer_index": null,
"parent_root": null,
"state_root": null,
"body_root": null
},
"signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
}
}
],
"attester_slashings": [
{
"attestation_1": {
"attesting_indices": [
"1"
],
"signature": null,
"data": {
"slot": "1",
"index": "1",
"beacon_block_root": null,
"source": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
},
"target": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
}
}
},
"attestation_2": {
"attesting_indices": [
"1"
],
"signature": null,
"data": {
"slot": "1",
"index": "1",
"beacon_block_root": null,
"source": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
},
"target": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
}
}
}
}
],
"attestations": [
{
"aggregation_bits": "0x01",
"signature": null,
"data": {
"slot": "1",
"index": "1",
"beacon_block_root": null,
"source": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
},
"target": {
"epoch": "1",
"root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
}
}
}
],
"deposits": [
{
"proof": [
"0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
],
"data": {
"pubkey": "0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a",
"withdrawal_credentials": null,
"amount": null,
"signature": null
}
}
],
"voluntary_exits": [
{
"message": {
"epoch": null,
"validator_index": null
},
"signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
}
]
}
},
"signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
}
}
Success