chain_getHeader

Retrieves the header for a specific block#

Parameters

BlockHash (string) the hash of the block for which the header will be retrieved

Example

//Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getHeader", "params": ["0xc01ab51f2c30e060c666e2c88cda51a5989c3386b21525feb31b50f79f3ae487"]}' http://<your-app-id>.ankr.com
//Response
{
"jsonrpc": "2.0",
"result": {
"digest": {
"logs": [
"0x0642414245b5010168000000800dbe0f00000000b65f970ce0f4f0189458cd0e61f332f1d8b3b177d671e868641237d884bdaa49c5bb00b936dbfe32aa3c3f4e08bd244be5b8c1b69701db8b9ca8b964ce28490aaaae1f07edee9d13f106a1c35969d8a369a6600870ddac3f670fe9fffbf7f003",
"0x0542414245010190e34f96ac79b06b940cf0cefb447369c22c95f2959c5ba550b0344e62b50215ce8489ae35287687d2ef1ad67ed90638787782cdbde42dd1834caa28c43faa8d"
]
},
"extrinsicsRoot": "0xf532dc9d6a7e8a981029d0b104c97ab8640a3b4f54fd663ba2378edf3ef50c14",
"number": "0x174883",
"parentHash": "0x4dcaa0f24a99ec7044266fe82dc155b9ffb5a3f07638cdff48ac78a17876f7c4",
"stateRoot": "0x2d4ee419f2fc88fc0c491ec7fc82c6131c3178c7b437deea94c4b79c79e2e89f"
},
"id": 1
}