This endpoint also supports SSZ (SimpleSerialize) responses. Set Accept: application/octet-stream in the request header to receive an SSZ-encoded payload instead of JSON. SSZ responses are smaller and faster to parse, and are useful for consensus-layer clients and indexers.
curl -X GET "YOUR_QUICKNODE_ETHEREUM_URL/eth/v2/beacon/blocks/{block_id}" \
-H "Accept: application/octet-stream" \
--output block.ssz
Path Parameters
- block_idstringREQUIRED
The state identifier. It can be a slot number, blockRoot (encoded in hexadecimal format) or tags (Supported tags include - head (canonical head in node's view), genesis, finalized or justified)
Returns
- versionstring
The enumeration. The possible values could be: phase0, altair, bellatrix
- dataobject
The object with the following values:
- messageobject
The BeaconBlock object from the CL spec
- slotstring
The slot to which this block corresponds
- proposer_indexstring
Index of validator in validator registry
- parent_rootstring
The signing merkle root of the parent BeaconBlock
- state_rootstring
The tree hash merkle root of the BeaconState for the BeaconBlock
- bodyobject
The BeaconBlockBody object from the CL spec
- signaturestring
The signature
1{2"version": "fulu",3"execution_optimistic": false,4"finalized": false,5"data": {6"message": {7"slot": "14114189",8"proposer_index": "1660070",9"parent_root": "0x135a0798fa8e27424e078ea2ff7c34784ed74c48eccd025a2ddb26592884b3c8",10"state_root": "0x4d083b32036d09f04cfc26af83d9f8c5e6d84f37b416a89334da912452039f75",11"body": {12"graffiti": "0x0000000000000000000000000000000000000000000000000000000000000000"13}14},15"signature": "0xb1c39ef8dfccb963b3e741c9f0650b1ec51b663d953f3515589a578324f0dc8df7a46df84f763ffaad3ef9e01f42f185123c6ecccc0398b07d234a18402b57e6e9f5218ce1d50b0c3fa3cabbf99477c6f65a1130983e559bb32665369eded6ef"16}17}
1{2"version": "fulu",3"execution_optimistic": false,4"finalized": false,5"data": {6"message": {7"slot": "14114189",8"proposer_index": "1660070",9"parent_root": "0x135a0798fa8e27424e078ea2ff7c34784ed74c48eccd025a2ddb26592884b3c8",10"state_root": "0x4d083b32036d09f04cfc26af83d9f8c5e6d84f37b416a89334da912452039f75",11"body": {12"graffiti": "0x0000000000000000000000000000000000000000000000000000000000000000"13}14},15"signature": "0xb1c39ef8dfccb963b3e741c9f0650b1ec51b663d953f3515589a578324f0dc8df7a46df84f763ffaad3ef9e01f42f185123c6ecccc0398b07d234a18402b57e6e9f5218ce1d50b0c3fa3cabbf99477c6f65a1130983e559bb32665369eded6ef"16}17}