POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getblockbynum
wallet/getblockbynum
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbynum \
  --header 'Content-Type: application/json' \
  --data '{
  "num": 1000,
  "visible": false
}'
{
  "blockID": "<string>",
  "block_header": {
    "raw_data": {
      "number": 123,
      "timestamp": 123,
      "parentHash": "<string>"
    },
    "witness_signature": "<string>"
  },
  "transactions": [
    {}
  ],
  "visible": true
}
TRON API method that retrieves a block by its number. This method returns detailed information about a specific block in the TRON blockchain, including all transactions contained within that block.
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 block number to retrieve (integer)
  • visible — optional boolean to specify address format (default: false for hex format)

Response

  • blockID — unique block identifier hash
  • block_header — block header information containing:
    • raw_data — raw header data with timestamp, number, and parent hash
    • witness_signature — block producer’s signature
  • transactions — array of transaction objects in the block
  • visible — boolean indicating address format used

Use case

The wallet/getblockbynum method is used for:
  • Retrieving specific blocks for blockchain analysis and monitoring.
  • Accessing transaction history within particular blocks.
  • Building block explorers and analytics tools.
  • Verifying block data and transaction inclusion for auditing purposes.

Body

application/json

Response

200 - application/json

Block information

The response is of type object.