TronScan Block Info
by @sshnii
Query TRON latest block, block reward, block time, producer, burned TRX, resource use, transaction count. Use when user asks "latest block", "block height",...
clawhub install tronscan-block-infoπ About This Skill
name: tronscan-block-info description: | Query TRON latest block, block reward, block time, producer, burned TRX, resource use, transaction count. Use when user asks "latest block", "block height", "block producer", "block reward", "burned TRX", or network load. Do NOT use for real-time TPS/network dashboard (use tronscan-realtime-network); tx by hash (use tronscan-transaction-info). metadata: author: tronscan-mcp version: "1.0" mcp-server: https://mcp.tronscan.org/mcp
Block Info
Overview
| Tool | Function | Use Case | |------|----------|----------| | getLatestBlock | Latest block | Block number, hash, size, timestamp, witness, tx count | | getBlocks | Block list | Pagination, sort, filter by producer/time | | getBlockStatistic | Block statistics | 24h payment total, block count, burn total |
Use Cases
1. Latest Block: Use getLatestBlock for current block number, hash, size, timestamp, witness, tx count.
2. Block Reward: Reward info can be derived from block data or chain params; block list gives block-level data.
3. Block Time / Producer: Use getLatestBlock or getBlocks for timestamp and witness (producer).
4. Burned TRX: Use getBlockStatistic for 24h burn total; per-block burn may be in block payload.
5. Resource Consumption: Block-level resource use is reflected in block size and tx count; use getBlockStatistic for aggregates.
6. Transaction Count: Use getLatestBlock for tx count in latest block; use getBlocks for multiple blocks.
7. Network Load: Combine getLatestBlock, getBlocks, and getBlockStatistic for real-time load view.
MCP Server
Tools
getLatestBlock
getLatestBlock β Calls /api/block/latest; returns latest solidified block (number, hash, size, timestamp, witness, tx count)/api/block/latest does not return witnessName, fee, energyUsage, blockReward, voteReward, confirmations, netUsage. These may appear as 0 or null in the responseβignore them. For witness name, block reward, fees, or resource usage, use getBlocks instead.getBlocks
getBlocks β Get block list with pagination, sort, filter by producer/time range-number), optional producer address, start/end time.getBlockStatistic
getBlockStatistic β Get block statistics (24h payment total, block count, burn total)Troubleshooting
Notes
getChainParameters (Witness category) if reward rules are needed.getLatestBlock and/or getBlockStatistic for load and burn.getLatestBlock may return 0/null for witnessName, blockReward, voteReward, fee, energyUsage, netUsage, confirmations (underlying /api/block/latest does not provide them); use getBlocks when these fields are needed.β‘ When to Use
π Tips & Best Practices
getChainParameters (Witness category) if reward rules are needed.getLatestBlock and/or getBlockStatistic for load and burn.getLatestBlock may return 0/null for witnessName, blockReward, voteReward, fee, energyUsage, netUsage, confirmations (underlying /api/block/latest does not provide them); use getBlocks when these fields are needed.