Install
openclaw skills install trongrid-block-infoQuery and analyze TRON blocks including producer info, transaction breakdown, rewards, burns, and network load. Use when a user asks about a specific block, latest block, block height, block rewards, block producer, transaction count, or network status. Supports single block lookup, block ranges, confirmed blocks, and multi-block trend analysis.
openclaw skills install trongrid-block-infoQuery and analyze TRON blocks — latest block data, block rewards, producer info, TRX burns, resource consumption, transaction breakdown, and network load trends.
Choose the right tool based on the query:
| Query Type | Tool | Parameters |
|---|---|---|
| Latest block | getBlock | none (omit id_or_num) |
| Latest confirmed block | solidityGetBlock | none (omit id_or_num) |
| Block by number | getBlock | id_or_num=<height>, detail=false |
| Block range | loop getBlock | id_or_num=<height> incrementing, detail=false |
| Latest N blocks | loop getBlock N times | start from latest, decrement id_or_num |
| Block statistics | getBlockStatistics | blockNum |
Extract from the block response:
getPaginatedNowWitnessList to match address to SR name/URLgetBrokerage for the producing SR to get reward distribution ratiogetTransactionInfoByBlockNum for receipts — reveals total fees, energy consumed, bandwidth consumed, success/failure countsFrom transaction receipts:
Compare block metrics against capacity:
getBlock 10–20 times (decrementing id_or_num) and compareCall getEventsByBlockNumber for smart contract events (DeFi swaps, token transfers, governance actions).
## Block #[number]
### Overview
- Hash: [hash]
- Time: [timestamp]
- Producer: [SR name] ([address])
- Brokerage: [X%]
### Transactions
- Total: [count] (Success: [X], Failed: [Y])
| Type | Count | % |
|------|-------|---|
| TRX Transfer | XX | XX% |
| Contract Call | XX | XX% |
| Staking | XX | XX% |
### Economics
- Block Reward: [X] TRX
- Fees: [X] TRX | Burned: [X] TRX
### Resources
- Energy Used: [amount]
- Bandwidth Used: [amount]
- Network Load: [Low/Medium/High]
For multi-block trend queries:
## Network Status (Last [N] Blocks)
- Avg Transactions/Block: [count]
- Avg Block Time: [X.X]s
- Total TRX Burned: [amount]
- Current Height: #[number]
- Load Trend: [Increasing/Stable/Decreasing]
| Error | Cause | Resolution |
|---|---|---|
| Block not found | Future block number or invalid hash | Check current height with getBlock (no params) first |
| Empty block | Block with zero transactions | Report as empty block — this is normal for low-activity periods |
| Range too large | Looping getBlock for many blocks | Split into smaller batches; avoid requesting more than 100 blocks in a single flow |
| No events | Block has no smart contract activity | Skip events section, note "No contract events in this block" |