getblock

Returns an Object with information about block ‘hash’.

Parameters

"hash | height" - (string, required) - The block hash or height. Height can be negative where -1 is the last known valid block.

Example

// Request
curl -u username:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblock","params": ["00000000febc373a1da2bd9f887b105ad79ddc26ac26c2b28652d64e5207c5b5"]}' http://<your-app-id>.ankr.com
// Result
{
"result": {
"hash": "00000000febc373a1da2bd9f887b105ad79ddc26ac26c2b28652d64e5207c5b5",
"confirmations": 251752,
"size": 748771,
"height": 12800,
"version": 4,
"merkleroot": "a2725bef50de57c71ede8d15f769ea5272ab7ad56bdb94ca8a73b12a469e7632",
"finalsaplingroot": "0000000000000000000000000000000000000000000000000000000000000000",
"chainhistoryroot": "0000000000000000000000000000000000000000000000000000000000000000",
"tx": [
"008440c3cec370670be6a83f6ff7f2518eb47de9257373f31b1e9640ae9e6986",
"f1d6098b1b076a8f0b5036126bea8bf32eabc42453007ccd89814bb5030e2f59",
"c94f6dfcfe60acf27c2dde44a8b38694896a6674b5dcf255c63b54ba8162cdc9",
"2a438db7e3f95f9c74fa691a04763ecc34cf66383ffd8356ed0d405582083eb9",
"bb4110cb9718f939a260a39826849300942151fb3c9f16e09cffe5a79b0e20fb",
"c0ea223eeb4024de5fb3e94bb4be927221d17b5b3df6fce12ed43ec3d4fe7493",
"4d9d4b1a133f5d3abb88a461f0fa669e0aa088b2d93235c3040bc776a6ab8fd9",
"487f4ceece179a753cc6ba8136e19b2869e0602dda99d5f300e7a8ac58b45f27",
"cc9095719f7bad03c64afa29e52b32487e2003952e0fb1bcec4273a11ab82a78",
"2363a19c4b57636d14fc9ad8bc6b2c2609f309ff4b895b21ea6ee7c0908ab2d2",
"b6819292057f8aa0f2bd1716fbecf53b3d2a591a3ca55b164468e26b26e86fc3",
"d782054e50408745927b3fef8b813701e76d9c3af79e5ce49be16c112b93a23d",
"0d8332217aefdfd34a594b28dea40e92be4682fc4d4f331124e6b3930d690379",
"d85246dad6d0addc4a7ecac125d89a6586857f917fc59c896d8b257dfd7db447",
"748271801ffc8296f69319f2f4b447774bfbefcad447bb91735433c115c0ad0a",
"074d91d4c1dec867583fb661ab997e1f4e52a995ae9b97e6afa37ed1e39c8780",
"3edef316394815b6608afed481c214497f78f93ba4aa3722a1c986c45d4557e6",
"1d6fb748d2169149ffc61750eb0ddcdfe31ab7bede16b892a1968f701abc6bb0",
"9d9080562542ce92d6df2c52a580a008f73e73d32ea7c0b389b6b4f8b8b0d36b",
"51201e1867e8476e8a89c36b13bc07ae587aa00fd1b6d011e0c93d7bbc9995ea",
"67b166ea599c253eff45edda8e6d73943c1db165bc72516dca9286ab1c354656",
"2d73db2f76b7a6590f131d9b31f78e453904f352dc9605274f163402fa11091b",
"92ec55dc7220c0d036383847c79d597b15e1aa18664fa5e995d16642c7733d5d",
"4577bb320dfe33aa96814c5932f5d1dde847ef5bff2e63e261b463996b86beb3",
"fc5ccfbfaa901bdf28c4673f3a6dab4e27fbda310676055ac1ba4a2b639468f4"
],
"time": 1479519154,
"nonce": "0000000000000000000000000000000000000000000000000014117519b7c6db",
"solution": "0076568fbc8ac5c33d60148fc74c28a19becd044e850593f470862db3dc582d54e13ce679b0a9a5aacc0014d8e917b9f5f1fb235028e90ab9245952a96eb8f339f6dc70bf28139d9e20853b05c2c16e53439f9140354ba7dffca181b20bb31986763f3813609501a3005e42351f122bb9ddbf3a0b0ad05fa186be54ebf951fe432d63faa01cf6ccbb20ffb650c024a4456130340713bbabcd5b9dd35f7c76e5dfb7af5ed70d2552802db77648812d9f2ff58d1c99dc348122605dcf25d06943a730162c3194fab435e402f7dc5d6e2354d6a1dca0ec7b708f444dfe31b5b815c77c382443c3d4e6cadb3f5eee1b829d36019388ce712a6d8d5b858b3137efa12040d5937dbef6665e373604e331c3cec891aedbafd0451162debfff1c25ae37cb8a1daf1d7ce17acc7068998301d614572150eba0b6974ef105bec20a89e6ec94b846b010ab36f88deb9591ff979f3e905689094be513fc509f4121dd4fbddce669b38a8950833addd359b48551b2a816918aad66ce6e039e45906e70af93953c3e9bb9142a02ce63bfd34837c32c0191013dd4bc7f1cff41594ccdab9ce495100dbf1b8143594182f544acafa3a2756085215d63b4a9e6d1d1c44017bc25a2ceb5800850a24cfebb59bdf5848a620a46ff4a308ff29ff92324390f06609fb39b3257727c33aad290af7ab842b0a13d37081cf34b03e5b580820d05453c6233c6051710e48aa67e2f4d39f83872eff3f3d49aba2259994356046e84eb9968179d43615712c9c1fd9e4657a17b5db05ecb50b4e631f7374166fc368990cc29560d954e5063cb596f4bd7e92740a672cea0347e0c8cb1341f124ca727c9ad3d12946189846719813a1ff487212bcb998cf2132cdd8fcb111ce10c12e2152ef5bcaf4f9b0b177be4e3352a261162bb2df58d4d74cd88e72027af6d52acc85b69f240209ffaa3b55ed5510b1e044e328a898f528779b715577151c9065b59543f40820a9e12dcfafab7e991421b03ce11c2bf131c2238454c72c68c51b1b7bb3f33ec08422dceb782785b49831d6e3fd569aad3f0bed0e717a0888da3d37b856f1a55844a6e4f31b75854d23d69384dd1cf36dafcc6943f3eaf34aa4041ec33e125f7cca77796c59df85941265c52d79e2347084a5392e97fc442b6c7379eab6752a505cc3ad747da80f0bbf05d24cf31667adce75a13ac488f5e44d1008ce1f1eaf5431122f88c444d57a3ef0477f69e3ff297e0bcf6778515d4b353a8ed3deb8ae38d523d86ab0a310939cdae9d085a5509bc162c9ba381211f2bb3a9e0e28c6fc108a9acde67d67b80a615597628f5b3446686dd4c149df2ac5cc74e6b04fc8e2a6849a3e90421e82934d2351509ab54f168cdce1c5f3a20afe0cf552e0dfa905564109597535b4eab35b26325ff9b2a3025a63f61dc6718d31dee8c607e1d2a739e25a86de0d85ddac8d09bc79628ca2b8a6d348253ea977dcd21355671ee254cded9bfee136f5d4c3fd9dc55f9de2208d77de01d57fd788812352121d65790da29e61f00d4a37ad5d17ab8bb98293b783e7fb3f6163de1060118f4117038b99d46111d5cfb9e390e7659efea11c1814f624595856fecb67a9227b7aefef85e31f9de14676bfb094672d5bed1bf65bdbf7e26b03677cc72003446471e60d75cce36cb1c2c1984b30a342b2b06139256d5f5f5fa8c538b45428b447e78dbb993a8d0808d98c5c39042a4f2b9a81a5089b6f6d6ec0b19f5e574b1da2b9d6fa08f49c672c88e00302cc9e77789314c59be0ca4f6bb38b67571e0d549f95ec9ff697c73899a6e6f0eede59c6a8678b86bebc178a07dc5fd82bea7a0fe0d7fd60da4a44ae756eb4b182b0906ace3f5d1eb9932b356b63ebd54639d653621ee55311fe",
"bits": "1d0181f2",
"difficulty": 347762.928199834,
"chainwork": "000000000000000000000000000000000000000000000000000012024f06e9d8",
"anchor": "47442189f27d5c2ac3e24dcfd6d227aef5c41548f25f806c603964ec011a7627",
"valuePools": [
{
"id": "sprout",
"monitored": true,
"chainValue": 422.1280921,
"chainValueZat": 42212809210,
"valueDelta": 0,
"valueDeltaZat": 0
},
{
"id": "sapling",
"monitored": true,
"chainValue": 0,
"chainValueZat": 0,
"valueDelta": 0,
"valueDeltaZat": 0
}
],
"previousblockhash": "000000014e765bbaa1aec886d6b7b784e1e367e2700d54df163e8a07496f1935",
"nextblockhash": "0000000078548f474d22ebdf90081935f32f8feafdf0f47de55acbc45504271f"
},
"error": null,
"id": "curltest"
}
// Request
curl -u username:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblock","params": ["-1"]}' http://<your-app-id>.ankr.com
// Result
{
"result": {
"hash": "000000000fff24e50da049867b38e6e8dfcfd80a7c7da2398f70e55686e04ec5",
"confirmations": 1,
"size": 29249,
"height": 264905,
"version": 4,
"merkleroot": "6c6205606b818dc6fb80b83ffb3893c5ad7afb8270dfe5c0f54f1bf25837b632",
"finalsaplingroot": "0000000000000000000000000000000000000000000000000000000000000000",
"chainhistoryroot": "0000000000000000000000000000000000000000000000000000000000000000",
"tx": [
"b6270100ddd5214ff1b2162a3058b882cc19caee06211696b8b0154025293e52",
"c79d7a561a2e812eb6a20cc585c86eb3607dcb4c9c063d9297b597636e287244",
"73436fbaba84fedf6a2e053f8ba6a1902aadffcd0d6eaf4ff288625a8cb4adb8",
"27fa4e6bb400ca1ecfd19e26357236397e0823ec5df477ddf5453696ec54bd7f",
"00dd521b640eb7fe23cfea3e3590735f9cf64d0655f3189b29c12ef4cc541547",
"7754d5c42370c158ae7e030405cb2f09a1bfafc7fc78dad002ee1384afb0973c",
"da0193424f84053a369432eb0e8b3eb78eff18947c65701b7b010d1812c6161a",
"027c69116dad14dcf8c6c4752875a6001c3e01e0fb21837f7a47a6f754f339ac",
"70d0084e082b8dd14d57929b3682b4a8517c60845724d98b486dfac289ea92c6",
"3d3a16181c23bf2b8979dde05636bdec5c09af4813f5e4ea8df805464fec7883",
"0182ac54701ebdeea20c976d81cafd9b08e54db3fa7bb692e8cbf9adeb1686a1",
"4bc4094ef9973cafdc37c933fefc7fc101a0c9cd5dbf96ee895fc562452c806e",
"be621a7cb1c056642117b645d1b54d220058fa9ae5174560682f1aaeb248ca1e",
"db84c7ff4005cd452292210a46c1e50236f9bf8412d0ac88507761944b0d9dc7",
"82c5e7a7fa63b5d6dfb9fb745a9184650080801d208ab2dd489c6bc3afee6c8a",
"0c3a7ec9a2ad4e2e6c72655c6f6e71e270a3725de2497e2a401042e6d5eee552",
"22dd65dc2083f89bec7b953a3fa541e216c9974bf7f921291fe616a96c335076"
],
"time": 1517521703,
"nonce": "0300000000000000000000002b9a61e660919d0f8dbf76db0000000000010c29",
"solution": "0115c55f316753dd8c5554210a5079f93d9b8fe3950a51ddcfcbc68796c948d4a3125331197582fe66200cdab67ee820bae574eee1b8b64162868b283f62304540a698de32bcdbcc5e05bd22fdb516ad4b9ba03f05dc2c1be4700471f4a2c1e828e2b585544e903bda0cf57201c1191b4925a8562b4c61d88e3739b9a59c1174fb219e91afd1a80ebc198f78ea5f0b0f3a221429a52a575ed0a3b5a8c0e2c9fc269de550be533c61051fda27575fd2d5b8597697dfcd8021ca773da59b0ac6c5ee92a72acd426f70dfdda6e760c246d890900d737b6b02871a61e242b48f46f102a5dd503f51cf43f6caa180afced3ebff7890a2e7b2a647357bed4b1b6bb95bca2a2d415af8c1f2a74d29491b68bc0e62458c7e05af14893703bf65ad4159d83399259d79e4291ce6fd701fa7d9e16f66aef75f2979bbd94ebb452a010d4dcc901a7cc1e4832dbc58037535c2da06970155333fcf607bb781feb5ce176e3642997bf67446219cc52b2e1644efb02f3332c659ec35b4385971cb19d0f9f75bae5015d9a923bd6d5956655ecb1e6bdd1e19a5f681107c9f044cf48ffa3b4165b10fefd4070e1270b44e99c2b6d5b1f0f4002880c4daa9b4141211f599c3cc86a1713892f4a4b92d2af5a22ab9898012ec7c18a59e03dbec3d35201acaafdd7c91976baa718827fb329e7c0fd5563b40dcf99a86d9ef98aa3b05e7fa6edec1cf9fbaa758d6807ab99fb2ce7df98209ad37db72db1093fbc2871715d9cb71cdbbfdbcd10b38a60e3ba36a89e9bcb5924b703c22b4633953630fa59f592fd085249c51d30072acd5f8cffcd58bdf0604e770beacf909bae48570785eb14b73fd3d968a40539c522c705c6585e31aa78e7b3e82b00d3921d03152444ee55d258b57e31346cf625104f6e3f73096576d149871d66526d3509abf9b6eda4ef648d837ed017ab5a5b5909ebdfbbf031cfc422c1d728c3d601358ad7cdd8e391477f39785f5e64641de276cdc0b28198a35ee6ace05fa77955481edfcd0057458ee2bec2bd89676873c6727eb3472fe94d28a6dc026afec9d24f27f8912d1b74172c6a282b85143a9de09d21cfc304f01db637f322ffc439434f4e6ab2a41a61eb48f47706e9a9fa5fed5a2670761f7c1ace61201379ca04afaf6002357e884c2e4558204ea091f61bc5d588c046eaaaed7a2ac5142e5a3a05a6ce0997ef8119c0a1bf7715e931ff3e72479e286b2a57568f42df1950a065decc02d2ed7cbd0f9212019d4026f04229b5f8f15a96114f9e56e696241f6648d552ee707a6bd6f0806a814766ab37cedad358671f2ccba85bf76f4822a2cac6c00b50bac7fb5e3736422bd762d1fd7fc26450acb7fcdd6f1c6efe815a402536c7b5dc225d971ea170ebc918ee27c8fee74465c6e4391ae3d92bc918a020650ba0090d2b936b0d833044bdade4e8ade01cc20efec36974ddee7a71ec3d3c434f0cd151f985dce02aa93863b67fcaf8b0ef6dc0bf88f127bad14fdd33b75e5c8cbe0cecd9371d3d31f646f8978f198d73d11027a9d6e704b2bffddc188ebbf5e52fa389b83638a2107347b3551d1fce5b972cb7b9ecedf1777433d16c4b7fab608510c85724347d562fa5da8add603574be41fcb1e781ba5e8e10919ed4c03869ad0f8a9e702d19eb776283187a1e773af4fce85d56e4f934fcd042f1a84025561d359111159f5e984821224d5c3580d6dd9393be448e928620128f35b12f16d54b4414e18d2be991066173dbb4122c039484a74cf47bf52a1079c7597d14e3e797a845676864f3fb9a26f7baa3b158e41a678e83ac57a6b8213f828e6b0c4baa760a623ba8d54ce26427f83d303024d4d8cc24b9673b6b748501732a4245857d5e434a3d32989ddd143da792d",
"bits": "1c15141c",
"difficulty": 6367490.064450371,
"chainwork": "00000000000000000000000000000000000000000000000000197dcc7b7e748b",
"anchor": "3a2eb33a9d44a11216ff6cece079a41d1ad8c67f5e2f11c2e05781c946a70b59",
"valuePools": [
{
"id": "sprout",
"monitored": true,
"chainValue": 174295.26053851,
"chainValueZat": 17429526053851,
"valueDelta": 1.69096345,
"valueDeltaZat": 169096345
},
{
"id": "sapling",
"monitored": true,
"chainValue": 0,
"chainValueZat": 0,
"valueDelta": 0,
"valueDeltaZat": 0
}
],
"previousblockhash": "000000000b161981801cbf00b6f0430d52b24889e7e61386f04d51b81966f58b"
},
"error": null,
"id": "curltest"
}