Getblock

Get block data by block hash

Parameters

The block hash (Type: string, required)

Returns

Returns the number of blocks in the longest blockchain.

data : (string)A string that is serialized, hex-encoded data for block ‘hash’.

Example

//Request
curl -u user:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblock","params": ["000000000000000d4737e2ec02c515fc9646c417947ec8786197eafa97fd8501"]}' http://<your-app-id>.ankr.com
//Response
{
"result":{
"hash":"000000000000000d4737e2ec02c515fc9646c417947ec8786197eafa97fd8501",
"confirmations":543,
"size":61757,
"height":1095988,
"version":536870912,
"versionHex":"20000000",
"merkleroot":"f71567b92e39449267d29f1d686785c48535c6cac3c88f9a0ae15e56f2064447",
"tx":[
"d3f4cf59f8b85cb6c283bf730f943413d1fa2680950a06451d87bbeca18a94e0",
"df9ba8a266b41a6aa8e384fa680ed4b399dbf7901d5afb63dba7a7898f447494",
"09da5baeea731e6fa2bda2e9c735d6f8ba1fc4a2469f28a8a186bbcb4ce5449b",
"4ea857b20d649fd376e666f7d6be5b483639f6ad3f744e74f0ea265e141b6fae",
"822e4657948004ae7d4b6bbc5855853d45e7798e332426fe476210d31bdf67de",
"cd154f5a7fe21e65b8a8c1cc81b1d03a19def9e3f058bfd6f74c5d7aae10dc13",
"fc4c8ae528c3d52e020367edb91cce3ebc374e4c3e4e6f5ddedbc87d15d3ea73",
"0e6bfc6f9fb3cb761c528f0589017db8f0126273454653b06484d30ff375bbd2",
"18107ee95ca5ceda566105d6cb2ad6ec509ca598c4426720e87d87fd53b1bae1",
"a41473f31275606e38703e19ecaa7fccc4c97c5c2f66a7e95837bdee5a45ef0b",
"0320aaf3a999778cea12330537d99d59538c1c41f80e2ff06606b2f6ff59834c",
"796fb1b52cb4d4ddaad699f1c3b1039119dd6934ece260acf082522a88744806",
"8cf81863f8df4ad6dbda36c2d07b2f96c605e9a1929e6b98f135d67dc750e5a9",
"6dc9a94c599912a3248b25a5f3f602aae4079a8680a57cd4bbd9fb7b9e8125a5",
"ffe2eebdb1fc68f43436085c101684d46582bdadebcbfdb9fd65795c408d445f",
"a654bcfbec9c07d5ce8efee8d492959d48f7c5ce9c7c691fb66932c42edc0ffa",
"74e41d4f44090603e19929ba3c1a369f27e1795c735d6995b9996bdbe823f0b9",
"6a4522e8450367e53d077ab588d15be79dddfdf55c75d81cc29ff03bdf5939d3",
"81442b526f9ec25ca13c63b8a31b0323ab6a6185a542ed70c7486afd6d8ac2b9",
"441c120668ce183d65aa542d095940c0e0f04ce97ba243b6a01dfbb04862f742",
"15245d6f65c3dac97549082dac49a9edaa473142f50d688227eaf4e4c4a51cc7",
"4dd161392a678c9b7184f6ee7da1c7c816fbaf4f6089157be9a6224d0e7defd5",
"0fd1f5eb81db0ac2fb0e4e9bf42dabcc01a3d29f79bdc1172835f1cea16e7607",
"cd6dd594f0c54d7d7c91adf89387ef6f6a04b9106cea7d43578f663166d8e2b3",
"c45b1b63273d603b976361fab131afc75c82ba1fa1a21a11ff3dcfe6ce04c5ad",
"069026dc47df29cdd93f4aa2409282cfe3fb868adf1e37ac35968c3fe7d65902",
"267762e2bd75ba11768481eeac37540604258e419fa32f07339d58e48c25609e",
"05b4a000928cb783586f74dee8a84596daee283803d5f6afcd86b56a6c78afbd",
"537d5c23cb55f6ceb9cb5f0ed884cb8faa5d1cbac9b887d68b61c988f9e3c9d7",
"056e5a2ab5d28b4fe9ef3708946aebaeffdc0e6bdff412d21a2fe93a1bc4be4c",
"624b78eeba53a75470ef02b82f1de5285c47cc9762254df2520f258395ba920b",
"a7c3dc4fc4162ea0489c3dd7ba7512372f590af0e260ea62d8258e6ba5948c07",
"1363138e3786f26b368a1d1dfff0cb2a944a467c7dc8e3a665180953644ca054",
"2ee1fa13df443b8b36467845766fb187eed01bf17a05c772bfd932851f476683",
"8aae4e4a30cfcfb159361fb1589dfabb20840227498b69b1358b2b41ecad5e08",
"5402fa431a0c4aa7fe56606cdb3ab02ffd112b03d57ca339524c267e25c85abd",
"8aee8d17a462d77c23747f743c7d55ccfc9ea920b34cf45b5ecd4209820fa77f",
"5a1ceb68ad9c7068a155d0a358a4038d84e7f9288e9f2cc0aef399ea5b9a59c9",
"a1d3a99926a6d32c97c687ee2109f0f590e9c8501f60afe2fe3764eb1163005a",
"7f1255459f18d151be21cc335dda04b57891cd37cf26f41e2ac8eca15483e096",
"60a14b1e46d0d6cba503cdd44b1f417f347fbc3cc0a943897c577aac3b062f9f",
"25593e328b1b2d8a9e5bf4555e6460825f1313d975c3d92fb30f8aeaa2299a88",
"26b98b717d09498427f7229c9e6799ca245124fdd23494f3dc9963363bf63018",
"03bd8284fa6685c556486402a1c9c5f04305f9671cc341ace6d01ea41a312e25",
"e0e38bbabdf90c6700ade094f8b5f583ed778e9241447d02d59e6c5324762a44",
"5a2ab4bcc20f37ace6d5c4f4483d676a887d24ba153ebe1b818561fc14ef7bbd",
"3f6accb415d9a5f10936d50e0f324f9b4291c1691d16f18c48fd16b9392c85d4",
"9e989ab43a5082fba3e2c4276312d8d7774acbc5e89e001cf6e202556f4dc8e8",
"73f927d8f5d07cbab6af91768a5278e0188eff3939d05776c85a9eae5227d418",
"456a1d1322dce204476170fca106daa844feda48e57601dc178e5ca789a5bb31",
"57ed737fab5b46643405e34205a1cf3fe00e94411d58e2e2647ff0ccb7c32c87",
"87979aa11a131579006db1654ffd98dc7680b355be5bc47d56b28c61bcba188f",
"3969e82196273082f6e202a174c2caa2018b62edf7036b6cd6ad13629e5a61ee",
"c0743194f62b90ae2e04abfe71b7e9741da7b8012efe152e71144c5d40ff6d37",
"28d291d92efe00f499ce137ee0cd85781223e8b6090c6302e21c00bfb690fd14",
"0187025145661cf74f337065b085ca09b18f4f8390bca9bb1ddca7850946a996",
"34f05f66cebd9b2a2cb669c602b3158bc7efded02e691ec43ff91ddcc5f41627",
"8ffd40728748109af9397d20918f2986537e53dfb849947d5062d03de4efabda",
"e51f927f0af21d7eb6bd26b3b9df98ad22875b1c429dde3789053c46d80d5014",
"92008f4ff00cb47c10901d05b43574418bc4dedbea9b58ad969309e452a12d44",
"2ce767a5aecc6423955f8f34f2e6bd0f24c96598b75ae4ebf94811ee53aca1af",
"af129217444fbfeb13d9f4480ed0d8377d9001bf7c86cf37b5b0b64f2fda01b1",
"41e5821f1fe4a389ac7a9abfd811887edc42874ab7c9a9e46e57c43f1343cfbc",
"749672dd1ae52d5a8064404bce24f251a55d5055b410b9adec2f6b60e7b461c7",
"f1d736d0ff2d266060e02e87547ccc0baa2862a030efcf831125b6a45a522bf3",
"70f299ef57b1feb8480ffe3f38f7f9075312033b1e78d0f6b82063ce7c097fde",
"eb0a59cb1ef59e344831a757f6296878c0c488f046104fc55cf0ae34d1abd5b2",
"96f30b0f03de51402f8fe5ff25ef3de3e7e584eabf94f41b6cc8a338331d3f91",
"f4aeafdde2604b2f3c756fde7dadb9f09dc9862aca920b86da05943d1494aab2",
"3d61864b4cc1f3712336d729d9435f89cc4ed1bbadc667fe1369028cafcee820",
"9dc05a8d83b96ca83734493186ce5eca4600a24823cfacf57e8563094c82225b",
"c5baefbe892fd867ac4dab1e9fc9c47036a91b225c739ff26b0a17bedb9e0c6c",
"9ff02ddd9ead459aa73cf7f0deecacc916861e7835bd5cc6c9f3defe34dcde72",
"2680ee5f6752bcc5796c04e1600a012010289da68f512d004ee0c14b6c6be2a9",
"1b4d19e029b5b0b2b0d53860f8469aecf920f4c7998b39d063409bd4e756c5e3",
"09b4d8beb4e902ec3af5b5d25c4edfc7b0b9a381376785d086e445c67ddb52f0"
],
"cbTx":{
"version":2,
"height":1095988,
"merkleRootMNList":"5c3237cba8b87ed4ccac1ecb86961dd83a371d02dde26e221de54e16c950e578",
"merkleRootQuorums":"e5888414ccc3c08e7bef31b297a7cfd278e5af90471dd14867affb1ed56b7ff4"
},
"time":1561930759,
"mediantime":1561929212,
"nonce":2862790822,
"bits":"19208486",
"difficulty":132079014.3501833,
"chainwork":"0000000000000000000000000000000000000000000017803edbe939e76f8ef0",
"previousblockhash":"000000000000000f161933e7ed9e70ccc6aa97fd9c77428fcc00f26b905d23b0",
"nextblockhash":"000000000000001a6a98d862fc452e74987d6bd02ee76c4bfc13bdadd3ff7e3f",
"chainlock":false
},
"error":null,
"id":1
}