Paralism Node RESTAPI

  1. Home
  2. Docs
  3. Paralism Node RESTAPI
  4. 10. GetLocalBlock to obtain complete data of local chain blocks

10. GetLocalBlock to obtain complete data of local chain blocks

*Parameter: hid, super block number

id, sub block number

chain_ num, sub chain number

*Example: http://127.0.0.1:8080/GetLocalBlock?hid=10&id=1&chain_num=1

*Return example:

{
  "app_type":[0],
  "auth":"",
  "block_size":176,
  "chain_num":1,
  "ctime":1561701760,
  "hash":"5f4282775ebfaac7b07fbc060a4d4f25d83615f8d3ecc3847ccbbe891d7398d1",
  "hash_prev":"0000000000000000000000000000000000000000000000000000000000000000",
  "hhash":"b57e9bf37663e5a8c2c88bf48090b96774384e5c0a206efe3aecfb35765789b1",
  "hid":10,
  "id":1,
  "nonce":0,		//Replace the difficulty field
  "payload":"192.168.0.65-8",
  "payload_size":14,
  "root_block_body_hash":"474ecf5b105d10d9068d3f592742f3ee1bc58ecf36aa45f31926de1b865128eb",
  "script":"",
  "script_hash":"0000000000000000000000000000000000000000000000000000000000000000",
  "version":"1.0.0"
}
Was this article helpful to you? Yes No