wallet/getblockbyid - Get TRON Block by Hash
Get TRON block information by block hash ID including transactions and block header via Dwellir's optimized RPC endpoint.
Get block information by block hash ID.
POST /wallet/getblockbyid
Request Parameters
Requestvalue*string
Required parameter: Block hash ID (hex string)
detail*boolean
Optional parameter: Include full transaction details (default: false)
result*OBJECT
`blockID` - Block hash identifier `block_header` - Block header information `raw_data` - Raw block data `number` - Block height `txTrieRoot` - Transaction trie root `witness_address` - Block producer address `parentHash` - Parent block hash `timestamp` - Block timestamp (milliseconds) `version` - Block version `witness_signature` - Witness signature `transactions` - Array of transactions in the block
# Get block by hash ID
curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/wallet/getblockbyid \
-H "Content-Type: application/json" \
-d '{
"value": "0000000003787ac74d9bb8f8c9c59ac3f3e3b9b8c9e3e8f9c8d7e8f9c8d7e8f9"
}'
# Get block with full transaction details
curl -X POST https://api-tron-mainnet.n.dwellir.com/YOUR_API_KEY/wallet/getblockbyid \
-H "Content-Type: application/json" \
-d '{
"value": "0000000003787ac74d9bb8f8c9c59ac3f3e3b9b8c9e3e8f9c8d7e8f9c8d7e8f9",
"detail": true
}'
- Block Verification: Verify block contents by hash
- Transaction Confirmation: Confirm transaction inclusion in specific block
- Chain Reorganization Detection: Monitor for block hash changes
- Block Explorer: Display block details by hash
- Forensic Analysis: Investigate specific blocks