Realtime Network Data
Overview
| Tool | Function | Use Case |
|---|---|---|
| getLatestBlock | Latest solidified block | Solidified block height, hash, timestamp, witness, tx count |
| getCurrentTps | TPS & height | Current TPS, latest block height, historical max TPS |
| getHomepageData | Homepage summary | TPS, node count, chain overview, TVL, frozen |
| getNodeMap | Node map | Real-time node info and geographic distribution |
| getWitnessGeneralInfo | Witness aggregate | Total vote count, block stats, witness count |
| getTransactionStatistics | Tx statistics | Total tx count, token tx volume aggregates |
Use Cases
- Latest solidified block / confirmed block height: Use
getLatestBlockfor solidified block (not chain-head latest); usegetCurrentTpsfor latest block height. - Real-time TPS: Use
getCurrentTpsfor current TPS; usegetHomepageDatafor overview TPS. - Real-time node count: Use
getHomepageDatafor node count; usegetNodeMapfor node list and distribution. - Latest TVL: Use
getHomepageDatafor latest TVL in homepage overview. - Total transaction count: Use
getTransactionStatisticsfor total tx count and token tx volume. - Real-time vote count: Use
getWitnessGeneralInfofor total vote count and witness stats.
MCP Server
- Prerequisite: TronScan MCP Guide
Tools
getLatestBlock
- API:
getLatestBlock— Calls/api/block/latest; returns latest solidified block (number, hash, size, timestamp, witness, tx count). Note: Returns solidified block, not the chain-head latest block. - Use when: User asks for "confirmed block", "solidified block height", or needs a stable block number. If user asks "latest block height" or "current block", clarify that the response is the solidified block and may lag behind the chain head.
- Response: number (block height), hash, size, timestamp, witness, tx count, etc.
- Note: Fields such as
witnessName,fee,energyUsage,blockReward,voteReward,confirmations,netUsagemay be 0 or null (underlying API does not return them)—ignore them. Use tronscan-block-infogetBlockswhen these fields are needed.
getCurrentTps
- API:
getCurrentTps— Get current TPS, latest block height, and historical max TPS - Use when: User asks for "real-time TPS", "current TPS", "throughput", or "latest block height".
- Response: currentTps, latest block height, historical max TPS.
getHomepageData
- API:
getHomepageData— Get homepage data (TPS, node count, overview, frozen, TVL, etc.) - Use when: User asks for "network overview", "node count", "TVL", or "homepage stats".
- Response: TPS, node count, chain overview, frozen resources, TVL, etc.
getNodeMap
- API:
getNodeMap— Get current node info and geographic distribution - Use when: User asks for "node count", "node distribution", or "node map".
- Response: Current node info and geographic distribution.
getWitnessGeneralInfo
- API:
getWitnessGeneralInfo— Get witness aggregate stats (total votes, block stats, witness count) - Use when: User asks for "real-time vote count", "total votes", or "witness stats".
- Response: Total vote count, block stats, witness count.
getTransactionStatistics
- API:
getTransactionStatistics— Get transaction statistics (total tx, token tx volume, etc.) - Use when: User asks for "total transaction count" or "tx volume".
- Response: Total tx count, token tx volume, and other 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 a single "real-time network" dashboard, prefer
getHomepageDatafirst (covers TPS, nodes, TVL); then addgetCurrentTpsfor precise TPS/height,getWitnessGeneralInfofor votes, andgetTransactionStatisticsfor total tx count. - All tools are invoked via TronScan MCP
tools/callwith the tool name and required arguments. getLatestBlockmay return 0/null forwitnessName,blockReward,voteReward,fee,energyUsage,netUsage,confirmations; use tronscan-block-infogetBlockswhen these fields are needed.