chain_getHeader
Retrieves the header for a specific block

Parameters

  1. 1.
    Block Hash
Returns
The header of a block given the block hash

Example

1
// Request
2
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getHeader", "params": ["0x30658d4bac51bc6e576d52323d3a5dd71dc46cae59a2768e908a509e7d019669"]}' https://polkadot-api.bwarelabs.com/<your-endpoint-id>
3
4
// Response
5
{
6
"jsonrpc":"2.0",
7
"result":{
8
"digest":{
9
"logs":[
10
"0x0642414245b501031a00000032524f100000000016f879995b831bb80117e2e1cba16da7c3797ca98db6701ae529a6c683fdb95c2e16c4de5adecbf511fbbb09f599e376cab910deefd2044b6f69432350c32c0f72f8d0ec7cafabcac46ff9b0b324d65ecfd6131f82d49995fd2745630546230e",
11
"0x05424142450101140bdc56b4950b9437c7a72beb581de5f717c726eadaeeb147f400c413fc091339e250e0464333aac805db0f4591a874e5c411b93b33e274ecdc76af35ba888f"
12
]
13
},
14
"extrinsicsRoot":"0x8c9a7286ccbb4826627a6971665381766b655215251fa4ae377a8530b4b21bb7",
15
"number":"0x81f316",
16
"parentHash":"0xaa3c53cd8a57ff000a4b2a15c3541984f972db4f556074c112a2d221f1ac6974",
17
"stateRoot":"0x6d8f4ef3170556ab41e495c56704f0bcddccd4e8efee1f8759d944bcfb77f204"
18
},
19
"id":1
20
}
Copied!
Copy link