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.
TRON RPC endpoint: endpoint URLs, plans and pricing.
Get block information by block hash ID.
Endpoint
POST /wallet/getblockbyid# 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
}'Implementation Examples
Use Cases
- 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
Related Methods
- wallet/getblockbynum - Get block by height
- wallet/getblockbylatestnum - Get recent blocks
- wallet/getnowblock - Get latest block
- wallet/gettransactionbyid - Get transaction details