POSTGetBlockByLatestNum

Tron Mainnethttps://tron-mainnet.nodit.io/wallet/getblockbylatestnum

Returns a list of block objects.

Request Body
numinteger (int32)

Number of most recent blocks to retrieve. Example: 5

visibleboolean

Optional. Set to true to format addresses in Base58; set to false for hex format. (Default: false)

Responses
X-API-KEY
RequestCU100
cURL
curl -X POST "https://tron-mainnet.nodit.io/wallet/getblockbylatestnum" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "num": 5
}'
Response
Example · 200
[
  {}
]