Skip to main content

/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

Field

Type

Description

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>.

info

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!

Curl Request example

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