Skip to main content


Retrieve a relay chain block's header and body components.

An crucial RPC call for getting comprehensive details about a particular block in the relay chain is chain_getBlock. This function takes a block hash as input and outputs a complete set of information about the block that is specified, including information about both the block's header and body.

Example Request and Result for chain_getBlock method

In this section, we provide an illustrative example of a request made to retrieve details contents using the chain_getBlock method. Additionally, we present the resulting response containing information about the header and the body of a relay chain block.




stringThe hash of the block where this transaction was in

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

Make sure you replace it with your Vara Mainnet endpoint when issuing the API calls.

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

Retrieve a relay chain block's header and body components.


Request Body

"jsonrpc": "2.0",
"result": {
"block": {
"header": {
"parentHash": "0x290a66a02502c71003cb11a136338f75982d30e70bfd8d7bf8f0101863721f2c",
"number": "0x994f28",
"stateRoot": "0x24d5472620295e65a1f36eabe81f8eed60f1c553d29a92eb45ab800cca363972",
"extrinsicsRoot": "0x58f7a3376ad6b952298bf6f591e1a9223c31ff3aef5cea2e6cc1089f31a2b121",
"digest": {
"logs": [
"extrinsics": [
"justifications": null
"id": 1

Curl Request example

curl --location '<project-id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "chain_getBlock",
"params": ["0xf9bb4bcd70b0188c940ed73de2499d0273d987ea8286cfc6324fefb67559ce63"],
"id": 1