getblockheader

Returns an Object with information about blockheader ‘hash’.

Parameters

"hash" - (string, required) - The block hash.

Example

// Request
curl -u username:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblockheader","params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"]}' http://<your-app-id>.ankr.com
// Result
{
"result": {
"hash": "00000000febc373a1da2bd9f887b105ad79ddc26ac26c2b28652d64e5207c5b5",
"confirmations": 254979,
"height": 12800,
"version": 4,
"merkleroot": "a2725bef50de57c71ede8d15f769ea5272ab7ad56bdb94ca8a73b12a469e7632",
"finalsaplingroot": "0000000000000000000000000000000000000000000000000000000000000000",
"time": 1479519154,
"nonce": "0000000000000000000000000000000000000000000000000014117519b7c6db",
"solution": "0076568fbc8ac5c33d60148fc74c28a19becd044e850593f470862db3dc582d54e13ce679b0a9a5aacc0014d8e917b9f5f1fb235028e90ab9245952a96eb8f339f6dc70bf28139d9e20853b05c2c16e53439f9140354ba7dffca181b20bb31986763f3813609501a3005e42351f122bb9ddbf3a0b0ad05fa186be54ebf951fe432d63faa01cf6ccbb20ffb650c024a4456130340713bbabcd5b9dd35f7c76e5dfb7af5ed70d2552802db77648812d9f2ff58d1c99dc348122605dcf25d06943a730162c3194fab435e402f7dc5d6e2354d6a1dca0ec7b708f444dfe31b5b815c77c382443c3d4e6cadb3f5eee1b829d36019388ce712a6d8d5b858b3137efa12040d5937dbef6665e373604e331c3cec891aedbafd0451162debfff1c25ae37cb8a1daf1d7ce17acc7068998301d614572150eba0b6974ef105bec20a89e6ec94b846b010ab36f88deb9591ff979f3e905689094be513fc509f4121dd4fbddce669b38a8950833addd359b48551b2a816918aad66ce6e039e45906e70af93953c3e9bb9142a02ce63bfd34837c32c0191013dd4bc7f1cff41594ccdab9ce495100dbf1b8143594182f544acafa3a2756085215d63b4a9e6d1d1c44017bc25a2ceb5800850a24cfebb59bdf5848a620a46ff4a308ff29ff92324390f06609fb39b3257727c33aad290af7ab842b0a13d37081cf34b03e5b580820d05453c6233c6051710e48aa67e2f4d39f83872eff3f3d49aba2259994356046e84eb9968179d43615712c9c1fd9e4657a17b5db05ecb50b4e631f7374166fc368990cc29560d954e5063cb596f4bd7e92740a672cea0347e0c8cb1341f124ca727c9ad3d12946189846719813a1ff487212bcb998cf2132cdd8fcb111ce10c12e2152ef5bcaf4f9b0b177be4e3352a261162bb2df58d4d74cd88e72027af6d52acc85b69f240209ffaa3b55ed5510b1e044e328a898f528779b715577151c9065b59543f40820a9e12dcfafab7e991421b03ce11c2bf131c2238454c72c68c51b1b7bb3f33ec08422dceb782785b49831d6e3fd569aad3f0bed0e717a0888da3d37b856f1a55844a6e4f31b75854d23d69384dd1cf36dafcc6943f3eaf34aa4041ec33e125f7cca77796c59df85941265c52d79e2347084a5392e97fc442b6c7379eab6752a505cc3ad747da80f0bbf05d24cf31667adce75a13ac488f5e44d1008ce1f1eaf5431122f88c444d57a3ef0477f69e3ff297e0bcf6778515d4b353a8ed3deb8ae38d523d86ab0a310939cdae9d085a5509bc162c9ba381211f2bb3a9e0e28c6fc108a9acde67d67b80a615597628f5b3446686dd4c149df2ac5cc74e6b04fc8e2a6849a3e90421e82934d2351509ab54f168cdce1c5f3a20afe0cf552e0dfa905564109597535b4eab35b26325ff9b2a3025a63f61dc6718d31dee8c607e1d2a739e25a86de0d85ddac8d09bc79628ca2b8a6d348253ea977dcd21355671ee254cded9bfee136f5d4c3fd9dc55f9de2208d77de01d57fd788812352121d65790da29e61f00d4a37ad5d17ab8bb98293b783e7fb3f6163de1060118f4117038b99d46111d5cfb9e390e7659efea11c1814f624595856fecb67a9227b7aefef85e31f9de14676bfb094672d5bed1bf65bdbf7e26b03677cc72003446471e60d75cce36cb1c2c1984b30a342b2b06139256d5f5f5fa8c538b45428b447e78dbb993a8d0808d98c5c39042a4f2b9a81a5089b6f6d6ec0b19f5e574b1da2b9d6fa08f49c672c88e00302cc9e77789314c59be0ca4f6bb38b67571e0d549f95ec9ff697c73899a6e6f0eede59c6a8678b86bebc178a07dc5fd82bea7a0fe0d7fd60da4a44ae756eb4b182b0906ace3f5d1eb9932b356b63ebd54639d653621ee55311fe",
"bits": "1d0181f2",
"difficulty": 347762.928199834,
"chainwork": "000000000000000000000000000000000000000000000000000012024f06e9d8",
"previousblockhash": "000000014e765bbaa1aec886d6b7b784e1e367e2700d54df163e8a07496f1935",
"nextblockhash": "0000000078548f474d22ebdf90081935f32f8feafdf0f47de55acbc45504271f"
},
"error": null,
"id": 1
}