Skip to main content

chain_getBlock RPC Method - AssetHub

Get header and body of a relay chain block.

Updated on
Jul 25, 2025

Parameters

hash
string

The block hash for which we need to fetch the header and body

Returns

result
object

The block data including header and extrinsics

block
object

The block data structure containing header and extrinsics

header
object

Block header information

parentHash
string

Hash of the parent block

number
string

Block number in hexadecimal

stateRoot
string

Merkle root of the state trie after this block

extrinsicsRoot
string

Merkle root of the extrinsics in the block

digest
object

Block digest containing consensus and runtime logs

logs
array

List of digest log entries as hex strings

extrinsics
array

Array of extrinsics included in the block as hex strings

justifications
array | null

Optional justifications for the block. Null if not present

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