Get block headers
curl -X GET \ "curl https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/headers \ -H "Content-Type: application/json"
curl -X GET \ "curl https://sepolia.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/headers \ -H "Content-Type: application/json"
Last updated 7 months ago
Retrieves block headers matching given query. By default it will fetch current head slot blocks.
Success
const response = await fetch('https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>//eth/v1/beacon/headers', { method: 'GET', headers: {}, }); const data = await response.json();
{ "execution_optimistic": {}, "data": [ { "root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", "canonical": false, "header": { "message": { "slot": {}, "proposer_index": {}, "parent_root": {}, "state_root": {}, "body_root": {} }, "signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505" } } ] }