/eth/v2/beacon/blocks/{block_id}

Get block.

Obtains block information for the specified block id. It can be returned in either JSON format or as bytes serialized using SSZ, depending on the Accept header.

Example Request and Result for /v2/beacon/blocks/{block_id}

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v2/beacon/blocks/{block_id} endpoint. Additionally, we present the resulting response containing information about block.

Parameters

FieldTypeDescription

block_id*

string

Block identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", <slot>, <hex encoded blockRoot with 0x prefix>.

The example in this section uses a non-existing project id.

Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Get block.

GET https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v2/beacon/blocks/<block_id>/

Path Parameters

NameTypeDescription

block_id*

string

head

{
  "version": "capella",
  "execution_optimistic": true,
  "finalized": false,
  "data": {
    "message": {
      "slot": "915698",
      "proposer_index": "990444",
      "parent_root": "0x07a5ef88ed330750e68eb51d131f2b1ad63051b032009581007ff591617566a8",
      "state_root": "0xae49e5e7e611f857c2bf13f548e457c1191eca8ea511844a601863b8e4ffceff",
      "body": {
        "randao_reveal": "0xb8b9fc0b618bf98ea2b38ab7b69cf43f852bbd06431e1d8e129dc035deae09c1ab31a60e4598128f5b9632bcccc9636c167c95ddf03c79f0bdc435614b6e1eb3f272c75491696ab18ecf16e5b6f69218630028b48289f90e2c5f478d7941e744",
        "eth1_data": {
          "deposit_root": "0x8c9a82b35a7f47bf105e75f7c3e91e4b614be6e2d7da7ad7dceaf31850d0f3f0",
          "deposit_count": "107683",
          "block_hash": "0x75564ff0f4df3edca2865347c343ccb59d0f335621c79e466e50edbaaf41a088"
        },
        "graffiti": "0x4e696d6275732f7632342e312e322d3862323631642d73746174656f66757300",
        "proposer_slashings": [],
        "attester_slashings": [],
        "attestations": [
          {
            "aggregation_bits": "0xfffffffffeffffffffffbffffddfffffefdffffffffdfffffffffffffefffffffffefffbffffffffefbffffbfffffffefffffffffdffff9ffbffdfbffffffffffffffffffff7fffffffeffffffeffffa7fffdffffffffffffffffbffffff01",
            "data": {
              "slot": "915697",
              "index": "40",
              "beacon_block_root": "0x07a5ef88ed330750e68eb51d131f2b1ad63051b032009581007ff591617566a8",
              "source": {
                "epoch": "28614",
                "root": "0xd5a672f569b99c17f7777a9b1b61edb6dd98c42b144ccae0a2990a7820028f38"
              },
              "target": {
                "epoch": "28615",
                "root": "0x133e8cd48855efc35d0a3799af483dc6efbd4598ae63c4f96701a1073c0f4c1b"
              }
            },
            "signature": "0xa6b0ba8380895bf5cbb675f8badb660724aa9afcf5ec299815a3d741453e659ac210b9033aefb9bc1cc06845f60d443910a443d95ab9bc8c93d2b0af3a2aeeaf90436148ff93e28526767bcef810a52158109212c4f7b0dae4fba2a68c0626ae"
          },

Curl Request example

curl -X 'GET' \
  'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v2/beacon/blocks/head' \
  -H 'accept: application/json'

Last updated