POST
/
95e61622bf6a8af293978377718e3b77
/
walletsolidity
/
getblockbylatestnum
walletsolidity/getblockbylatestnum
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/walletsolidity/getblockbylatestnum \
  --header 'Content-Type: application/json' \
  --data '{
  "num": 5
}'
{
  "block": [
    {
      "blockID": "<string>",
      "block_header": {
        "raw_data": {
          "number": 123,
          "timestamp": 123,
          "parentHash": "<string>",
          "witness_address": "<string>"
        },
        "witness_signature": "<string>"
      },
      "transactions": [
        {}
      ],
      "blockSize": 123
    }
  ]
}
TRON API method that retrieves the latest solidified blocks by specifying a count. This method queries confirmed and finalized blockchain state, providing reliable recent block information that cannot be rolled back.
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 — the number of latest blocks to retrieve (integer)

Response

Returns an array of the most recent block objects, each containing:
  • blockID — the block hash
  • block_header — block header information
  • transactions — array of transactions in each block
  • blockSize — size of each block in bytes
  • timestamp — block creation timestamps
  • number — block numbers

Use case

The walletsolidity/getblockbylatestnum method is used for:
  • Retrieving the most recent confirmed blocks from solidified blockchain state
  • Monitoring latest finalized blockchain activity
  • Building applications that display recent reliable block data
  • Implementing real-time dashboards with confirmed block information

Body

application/json

Response

200 - application/json

Array of the latest solidified blocks

The response is of type object.