Paralism Node RESTAPI

  1. Home
  2. Docs
  3. Paralism Node RESTAPI
  4. 7. GetHyperblocks to obtain complete data of hyperblocks and associated local chain block data

7. GetHyperblocks to obtain complete data of hyperblocks and associated local chain block data

*Parameter: start_ ID, starting block number

num, quantity

*Example: http://127.0.0.1:8080/GetHyperblocks?start_id=10&num=1

*Return example:

{
  "10":[
    {
      "auth":"",
      "br_addrs":[],
      "br_root":"0101010101010101010101010101010101010101010101010101010101010101",
      "br_rule":0,
      "childchain_blockscount":[2],
      "ctime":1561702500,
      "hash":"a4f27b3cb570da42b7ad60b17980010e3bab9ce9bf7716a440b55bcf9e04ea6e",
      "hash_prev":"b57e9bf37663e5a8c2c88bf48090b96774384e5c0a206efe3aecfb35765789b1",
      "hash_prev_header":"2d761092128a891de17a98d3035bb7d773440473117ee59a3464fcc98795619d",
      "hid":10,
      "hyperBlockSize":114,
      "local_blocks_header_hash":[
        [
          "b174b4cc7b12b919903d023c5ddfe7fbc47efa6e1d53e75a4911ed8caf3c136e",
          "1888b205bdb68933c330d7adcd50eb160d9a7479a1dfefe7476a64f29a416647"
        ]
      ],
      "merkle_hash_all":"b3319e25bbb284017286ea5127a5a2f0b0b6e0892d6d3690560d7dee0511df0d",
      "script":"",
      "script_hash":"0101010101010101010101010101010101010101010101010101010101010101",
      "tailblockshash":["d345f8d3579e4f7410bec4494821077f489fcab4f198f3e2de48132e276a2605"],
      "version":"1.0.0",
      "weight":2,
      "xw_hash":"0101010101010101010101010101010101010101010101010101010101010101"
    },
    {
      "app_type":[0],
      "auth":"",
      "block_size":176,
      "chain_num":1,
      "ctime":1561701760,
      //Use the current sub block hash as the next sub block hash_ Prev
      "hash":"5f4282775ebfaac7b07fbc060a4d4f25d83615f8d3ecc3847ccbbe891d7398d1",
      //First sub block prev_ Hash defaults to 0
      "hash_prev":"0000000000000000000000000000000000000000000000000000000000000000",
      "hhash":"b57e9bf37663e5a8c2c88bf48090b96774384e5c0a206efe3aecfb35765789b1",
      "hid":10,
      "id":1,
      "nonce":0,
      "payload":"192.168.0.65-8",
      "payload_size":14,
      "root_block_body_hash":"474ecf5b105d10d9068d3f592742f3ee1bc58ecf36aa45f31926de1b865128eb",
      "script":"",
      "script_hash":"0000000000000000000000000000000000000000000000000000000000000000",
      "version":"1.0.0"
    },
    {
      "app_type":[0],
      "auth":"",
      "block_size":175,
      "chain_num":1,
      "ctime":1561701768,
      "hash":"d345f8d3579e4f7410bec4494821077f489fcab4f198f3e2de48132e276a2605",
      //Current sub block hash_ Prev equals the previous sub block hash
      "hash_prev":"5f4282775ebfaac7b07fbc060a4d4f25d83615f8d3ecc3847ccbbe891d7398d1",
      "hhash":"b57e9bf37663e5a8c2c88bf48090b96774384e5c0a206efe3aecfb35765789b1",
      "hid":10,
      "id":2,
      "nonce":0,
      "payload":"192.168.0.8-9",
      "payload_size":13,
      "root_block_body_hash":"73e5a8bd083e976bae01a25855fbf684c1de025ac669168c50ce2ab724b3c6f9",
      "script":"",
      "script_hash":"0000000000000000000000000000000000000000000000000000000000000000",
      "version":"1.0.0"
    }
  ]
}
Was this article helpful to you? Yes No