GetBlockByLimitNext

Returns the list of Block Objects included in the 'Block Height' range specified.

Input integer values for starting block height and ending block height.

Body params:

  • startNum - Starting block height, including this block.

  • endNum - Ending block height, excluding that block.

Request

curl --request POST \
     --url https://tron.api.watchdata.io/wallet/getblockbylimitnext \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '
{
     "startNum": 1,
     "endNum": 3
}
'

Response

{
  "block": [
    {
      "blockID": "0000000000000001049f911bc1069bfd2c2225bc3cd210abd02fb219751813f0",
      "block_header": {
        "raw_data": {
          "number": 1,
          "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000",
          "witness_address": "41f16412b9a17ee9408646e2a21e16478f72ed1e95",
          "parentHash": "0000000000000000de1aa88295e1fcf982742f773e0419c5a9c134c994a9059e",
          "version": 9,
          "timestamp": 1575594015000
        },
        "witness_signature": "a3feb861edcf246bd51a447f8f91636c1d7e6868b346eb2773e24859aacceaed4aa032664c2433bce5dc58e6febe87d3a7e70841684536964670fcad05fe111601"
      }
    },
    {
      "blockID": "00000000000000028e917e1dcf24b45bf9ba16d59d77f9a1846bc4861e7045e4",
      "block_header": {
        "raw_data": {
          "number": 2,
          "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000",
          "witness_address": "41f16412b9a17ee9408646e2a21e16478f72ed1e95",
          "parentHash": "0000000000000001049f911bc1069bfd2c2225bc3cd210abd02fb219751813f0",
          "version": 9,
          "timestamp": 1575594024000
        },
        "witness_signature": "076e8610191e5e1b010697ed40fc4a8b316010374e27add85ca117160582223559e14195c7f475020b66f6136807a96c8aaea4b8a8061a9ab50d1d19234034eb00"
      }
    }
  ]
}

Last updated