GetBlockByLatestNum

Returns a list of block objects.

Body params:

  • num - The number of blocks to query

Request

curl --request POST \
     --url https://tron.api.watchdata.io/wallet/getblockbylatestnum \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --data '{"num":1}'

Response

{
  "block": [
    {
      "blockID": "00000000016633471dd700a3ba11859a65380ae1363096ae6440555be252ba06",
      "block_header": {
        "raw_data": {
          "number": 23475015,
          "txTrieRoot": "0000000000000000000000000000000000000000000000000000000000000000",
          "witness_address": "41839d08f05ade5b365e81d1a66c20af13ebb2991d",
          "parentHash": "0000000001663346388fe9035f4466f9c4642d0e423624835d45c8c63d116edd",
          "version": 23,
          "timestamp": 1649179509000
        },
        "witness_signature": "6c0f23e2d6f58b7b2b6716b9ac7d89d795616b84f2255de532c57c2578069c5a73978892904e3103c79c4e41bbfc4e9646db0e2fb2c98d88fb04581eebebcaa001"
      }
    }
  ]
}

Last updated