Skip to main content

chain_getBlock RPC Method

Retrieve both the header and body components of a relay chain block.

Updated on
Oct 04, 2023

Parameters

BlockHash
string

The hash of the block where this transaction was in

Returns

result
object

An object containing information about the requested block:

block
object

An object representing the block and its components

header
object

The header of the block, including various metadata

parentHash
string

The hash of the parent block, which is the previous block in the chain

number
string

The block number or height in the blockchain sequence

stateRoot
string

The root hash of the state trie after applying the block's transactions

extrinsicsRoot
string

The root hash of the trie containing the extrinsics in the block

digest
array | object

The additional data attached to the block, such as logs

logs
array

An array of digest log entries (hex strings)

extrinsics
array

An array of extrinsics (transactions) included in the block

justifications
array | null

An array of justifications (proof of validity) for the block, if available

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free