POSTGetBlockByLatestNum

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

Retrieves a list of the most recent blocks. Starting from the latest solidified block, the method returns the specified number (num) of blocks in descending order of height.

Request Body
numinteger (int32)required

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/walletsolidity/getblockbylatestnum" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
  "num": 5
}'
Response
Example · 200
[
  {}
]