POST
/
95e61622bf6a8af293978377718e3b77
/
walletsolidity
/
getblockbyid
walletsolidity/getblockbyid
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/walletsolidity/getblockbyid \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "0000000004326f801c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c1"
}'
{
  "blockID": "0000000004326f801c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c1",
  "block_header": {
    "raw_data": {
      "number": 70000000,
      "txTrieRoot": "d41c56e7e8b4a9d4e7c8c7b4f3e6d5a2b1c9d8e7f6a5b4c3d2e1f0e9d8c7b6",
      "parentHash": "0000000004326f7f2c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c0",
      "timestamp": 1704067200000,
      "witness_address": "41e38c95e0d7e9b68f7c8f7b4d3e6a5c2b1f9e8d7c6b5a4f3e2d1c0b9a8"
    },
    "witness_signature": "<string>"
  },
  "transactions": [
    {
      "txID": "<string>",
      "raw_data": {},
      "signature": [
        "<string>"
      ]
    }
  ],
  "blockSize": 1024
}
TRON API method that retrieves a solidified block by its block ID (hash). This method queries confirmed and finalized blockchain state, providing reliable 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

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

Response

Returns detailed block information including:
  • blockID — the block hash
  • block_header — block header information
    • raw_data — raw block header data
    • witness_signature — witness signature for the block
  • transactions — array of transactions in the block
  • blockSize — size of the block in bytes
  • timestamp — block creation timestamp
  • txTrieRoot — transaction trie root hash
  • parentHash — hash of the parent block
  • number — block number
  • witness_address — address of the block producer

Use case

The walletsolidity/getblockbyid method is used for:
  • Retrieving confirmed block data by hash from solidified blockchain state
  • Verifying block integrity using finalized block information
  • Building blockchain explorers with reliable, non-reversible block data
  • Implementing applications that require confirmed block information by hash lookup

Body

application/json

Response

200 - application/json

Solidified block information

The response is of type object.