Parameters
BlockHash
string
The hash of the block for which you want to retrieve the header information. If not provided, the request will return the header of the latest block on the chain
Returns
result
object
An object representing the header information of the requested block:
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 (transactions) in the block
digest
object
Block digest containing consensus and runtime logs
logs
array
List of digest log entries as hex strings
Request
Response
1{2"jsonrpc": "2.0",3"result": {4"parentHash": "0x613a1341ce1f0205e265f02d3990ebc725347212e255a6460e2f880c9b936d76",5"number": "0x92a3df",6"stateRoot": "0x5230372abb570f0b4630e3e658b7164562f95a45efca6f77e939be2a6c6481c2",7"extrinsicsRoot": "0x987d4970ad48bec4f54e172ce1488f90030b5ea4c3ae0b9cc878cfd2e95c1f9d",8"digest": {9"logs": [10"0x066175726120efc9a11100000000",11"0x04525053529050ed4077623fc60b5d3a13d134a16d18706cc389f3515929d1d6cacb3ad2444f02f44a07",12"0x0466726f6e090101c14d4fe46582331f286641f7317b46a4e3066ff3a5acc07e1ef8cb462e6528d8044230278147950ee96fdcaa3d24737e074aa39aa92cbe321a7401154d03c851f3",13"0x05617572610101fa2af070d1b328517c1e9717f5680c165d7c621b513110e0bb0b1dd55fd39a21c774fd578e649d7aeaa66c81a25cb5ae57e47b7f24df863a8fa9b9951bd7ba80"14]15}16},17"id": 118}
1{2"jsonrpc": "2.0",3"result": {4"parentHash": "0x613a1341ce1f0205e265f02d3990ebc725347212e255a6460e2f880c9b936d76",5"number": "0x92a3df",6"stateRoot": "0x5230372abb570f0b4630e3e658b7164562f95a45efca6f77e939be2a6c6481c2",7"extrinsicsRoot": "0x987d4970ad48bec4f54e172ce1488f90030b5ea4c3ae0b9cc878cfd2e95c1f9d",8"digest": {9"logs": [10"0x066175726120efc9a11100000000",11"0x04525053529050ed4077623fc60b5d3a13d134a16d18706cc389f3515929d1d6cacb3ad2444f02f44a07",12"0x0466726f6e090101c14d4fe46582331f286641f7317b46a4e3066ff3a5acc07e1ef8cb462e6528d8044230278147950ee96fdcaa3d24737e074aa39aa92cbe321a7401154d03c851f3",13"0x05617572610101fa2af070d1b328517c1e9717f5680c165d7c621b513110e0bb0b1dd55fd39a21c774fd578e649d7aeaa66c81a25cb5ae57e47b7f24df863a8fa9b9951bd7ba80"14]15}16},17"id": 118}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free