Skip to main content

chain_getBlock RPC Method

Get header and body of a relay chain block.

Updated on
Jul 18, 2025

chain_getBlock RPC Method

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