chain_getBlock

Get header and body of a relay chain block#

Parameters

BlockHash (string) the hash of the block to retrieve

Example

//Request
curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "chain_getBlock", "params": ["0x9c7d10e1a08e980ca3e9335b922ebcc231d89a513969a90e6d64bc9ccd629275"]}' http://<your-app-id>.ankr.com
//Response
{
"jsonrpc": "2.0",
"result": {
"block": {
"extrinsics": [
"0x280402000b505b4cc56e01",
"0x1c0409003a0d0300",
"0x1004140000"
],
"header": {
"digest": {
"logs": [
"0x064241424534024b000000331da60f00000000",
"0x054241424501014e97b8eb9d05e229be40b1f1e9900468de28081f0d6c71d7b25e99866664d11f097a7fb9ff93fe48b38a60dfad8cbd64887a19576ae39e1589fb4f835f752088"
]
},
"extrinsicsRoot": "0x8bd4055ccf3d29fb81c20f1be6d0a26c41cf2cffdb6ef9b7e697472336756566",
"number": "0xc350",
"parentHash": "0xadd46abd2d58793c95f1a59ef4a06c725bae9586620d43f6021b5d7647d12f42",
"stateRoot": "0x808d486319f8b72b04e2e3aa03f66c144c359323882d458a731b9b78dbea7356"
}
},
"justification": null
},
"id": 1
}