DOT
POST
GET
Last updated on January 1, 1970
2 min read
Method chain_getHeader undefined () | chain_getHeader - Polkadot
connect with JSON-RPC protocol
chain_getHeader
Retrieves the header for a specific block.
Parameters
hash
- BlockHash
hash of the block.
Request
curl --location --request POST 'https://dot.getblock.io/mainnet/'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "chain_getHeader",
"params": ["0x255bc00927df8d33d561792635cbc6bde480a0a505eef5ff28630ece3fc15b32"],
"id": "getblock.io"}'
Response
{
"id": "getblock.io",
"jsonrpc": "2.0",
"result": {
"digest": {
"logs": [
"0x0642414245b50103920000001c5b3410000000008c38422de44e2d4810819bffdc072324d552348581a3ee4d08f5d16782e82b1413e24956b9c637cc18b99964298c662274aa7e68fe1e55372e61a65185eddf015588b5d1c11e93a39ef29db473e91b225390cd155dfdb9bff7d29dd7cf897003",
"0x0542414245010114a5c414eb433fef25d514ac35937c1c2b83ffbac8a47479f02393172f622d02789eb0e3c4a8281f9a169a5fcf19cb1c8285f6382fc7ce3d0b71f82ca3f03582"
]
},
"extrinsicsRoot": "0xada254ef8321e28a6667ad75659be6464944174bd5540667da94590a0a4a596f",
"number": "0x67103a",
"parentHash": "0x570e3f417a41646d9b978bf2ac3d68be48bb0f73082825f438af58a37cfe0ef8",
"stateRoot": "0x176c67eca385c24403ba774550ff75dcfa652d6d6cf2d2ecbccf56e513db601c"
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }