Query TRON latest block, block reward, block time, producer, burned TRX, resource use, transaction count. Use when user asks "latest block", "block height",...
查询 TRON 最新区块信息,包括区块奖励、区块时间、生产者、燃烧的 TRX、资源使用和交易数量。当用户询问“最新区块”、“区块高度”等时使用。
Use when: User asks for "latest block", "current block", or "block height".
Response: number, hash, size, timestamp, witness, tx count, etc.
Note: /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
API: getBlocks — Get block list with pagination, sort, filter by producer/time range
Use when: User asks for "recent blocks", "blocks by producer", or "blocks in time range".
Use when: User asks for "block stats", "24h blocks", or "burned TRX".
Response: 24h payment, block count, burn total, and related aggregates.
Troubleshooting
MCP connection failed: If you see "Connection refused", verify TronScan MCP is connected in Settings > Extensions.
API rate limit / 429: TronScan API has call count and frequency limits when no API key is used. If you encounter rate limiting or 429 errors, go to TronScan Developer API to apply for an API key, then add it to your MCP configuration and retry.
Notes
For "block reward", combine block data with getChainParameters (Witness category) if reward rules are needed.
Real-time monitoring: poll 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.