POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getblockbylatestnum
wallet/getblockbylatestnum
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbylatestnum \
  --header 'Content-Type: application/json' \
  --data '{
  "num": 5,
  "visible": true
}'
{
  "block": [
    {
      "blockID": "<string>",
      "block_header": {},
      "transactions": [
        {}
      ]
    }
  ]
}
TRON API method that retrieves the latest blocks from the TRON blockchain up to a specified number of blocks.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • num — number of latest blocks to retrieve (maximum 100)
  • visible — optional boolean parameter. When set to true, addresses are in base58 format. Default is false.

Response

  • block — array of block objects, each containing:
    • blockID — the block hash
    • block_header — block header with raw data and witness signature
    • transactions — array of transactions in each block

Use case

The wallet/getblockbylatestnum method is used for:
  • Retrieving recent blockchain activity and transactions
  • Building real-time blockchain monitoring dashboards
  • Analyzing recent network activity patterns
  • Creating live feeds of blockchain events
  • Monitoring latest block production and validation

Body

application/json

Response

200 - application/json

Latest blocks information

The response is of type object.