POST
/
95e61622bf6a8af293978377718e3b77
/
wallet
/
getblockbyid
wallet/getblockbyid
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/wallet/getblockbyid \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "0000000000f4245300b88ffeb9bdb95b88c66b5ce6bb0ee79d85d5ce14b6a2a7ca"
}'
{
  "blockID": "<string>",
  "block_header": {
    "raw_data": {
      "timestamp": 123,
      "txTrieRoot": "<string>",
      "parentHash": "<string>",
      "number": 123,
      "witness_address": "<string>",
      "version": 123
    },
    "witness_signature": "<string>"
  },
  "transactions": [
    {}
  ]
}
TRON API method that retrieves a specific block from the TRON blockchain using its block ID (hash). This method allows you to fetch detailed information about a particular block, including its header, transactions, and metadata.
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

  • value — the block ID (hash) in hexadecimal format to retrieve

Response

  • blockID — the block hash identifier
  • block_header — block header information containing:
    • raw_data — raw block header data including:
      • timestamp — block generation timestamp in milliseconds
      • txTrieRoot — transaction trie root hash
      • parentHash — parent block hash
      • number — block height/number
      • witness_address — address of the block producer (witness)
      • version — block version
    • witness_signature — digital signature of the block producer
  • transactions — array of all transactions included in the block

Use case

The wallet/getblockbyid method is used for:
  • Retrieving detailed information about a specific block using its hash.
  • Building block explorers that need to display block details by ID.
  • Verifying block contents and validating transactions within a specific block.
  • Analyzing historical blockchain data for auditing and compliance purposes.
  • Implementing blockchain synchronization tools that need to fetch blocks by their identifiers.

Body

application/json

Response

200 - application/json

Block information

The response is of type object.