/eth/v2/beacon/blocks/{block_id} REST API Endpoint
SSZ Response Support
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_id
string
REQUIRED
Loading...
Returns
version
string
Loading...
data
object
Loading...
message
object
Loading...
slot
string
Loading...
proposer_index
string
Loading...
parent_root
string
Loading...
state_root
string
Loading...
body
object
Loading...
signature
string
Loading...
Request
1curl -X GET "https://docs-demo.quiknode.pro/eth/v2/beacon/blocks/head" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
1curl -X GET "https://docs-demo.quiknode.pro/eth/v2/beacon/blocks/head" \2-H "Content-Type: application/json" \3-H "Accept: application/json"
Response
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}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free