trongrid-data-insights
v1.0.2Provide TRON network analytics including transaction volume, type distribution, hot contracts, trending tokens, active accounts, staking metrics, and resource economics. Use when a user asks about TRON network health, daily stats, trending activity, top contracts, most active accounts, ecosystem ove...
Installation
Data Insights
Comprehensive TRON network analytics — activity metrics, transaction patterns, trending tokens/contracts, top accounts, governance status, and resource economics.
MCP Server
- Prerequisite: TronGrid MCP Guide
Instructions
Step 1: Network Snapshot
Fetch current state (run in parallel):
getBlock(no params) — Current block height and timestampgetChainParameters— Network configurationgetNodeInfo— Node count and sync statusgetBurnTrx— Total TRX burned to date
Step 2: Recent Block Activity
- Get latest block height from
getBlock(no params), then loopgetBlock20 times with decrementingid_or_num - For each block, call
getTransactionInfoByBlockNumfor transaction details
Calculate: - Avg transactions/block: total txs / 20 - Estimated daily transactions: avg * ~28,800 (blocks/day at 3s interval) - Avg block time: time delta between consecutive blocks - Success rate: successful / total
Step 3: Transaction Type Distribution
Categorize all transactions from the sample blocks: - TRX Transfers, Smart Contract Calls, TRC-10 Transfers - Staking Operations, Resource Delegation, Voting - Account Creation, Other
Step 4: Hot Contracts
- Aggregate contract calls across recent blocks by contract address
- For top contracts, call
getContractInfofor names - Call
getTrc20Infoif the contract is a token - Rank by call frequency
Step 5: Trending Tokens
- From
getEventsByLatestBlock, identify Transfer events - Aggregate transfer volume per token contract
- For top tokens, call
getTrc20Infofor metadata - Use web search for price data if needed
Step 6: Most Active Accounts
From recent transactions:
1. Rank addresses by transaction count sent
2. Rank by TRX value transferred
3. For top accounts, call getAccount to classify (exchange/bot/whale)
Step 7: Governance & Staking
getPaginatedNowWitnessList— All Super Representatives, votes, block production stats- From chain parameters, derive staking metrics
getEnergyPricesandgetBandwidthPrices— Resource price trends
Step 8: Compile Insights Report
## TRON Network Insights
### Overview
- Block Height: #[number]
- Est. Daily Transactions: ~[count]
- Avg Block Time: [X.X]s
- Success Rate: [X.X%]
- Total Burned (All Time): [amount] TRX
### Transaction Distribution
| Type | % | Est. Daily |
|------|---|-----------|
| Contract Calls | XX% | ~XXX,XXX |
| TRX Transfers | XX% | ~XXX,XXX |
| Staking | XX% | ~XX,XXX |
### Hot Contracts
| Contract | Name | Calls | Category |
|----------|------|-------|----------|
| TXxx... | USDT | X,XXX | Stablecoin |
### Trending Tokens
| Token | Symbol | Transfers | Volume |
|-------|--------|----------|--------|
### Most Active Accounts
| Address | Tx Count | Type |
|---------|----------|------|
### Governance
- Top SR: [name] ([votes] votes)
- Total Votes: [amount]
### Resource Economics
- Energy Price: [X] sun | Trend: [Up/Down/Stable]
- Bandwidth Price: [X] sun | Trend: [Up/Down/Stable]
### Key Takeaways
- [Activity trend]
- [Dominant activity driver]
- [Notable patterns]
Error Handling
| Error | Cause | Resolution |
|---|---|---|
| Block fetch timeout | Network congestion or large blocks | Reduce block count (try 10 instead of 20) |
| Incomplete tx info | Some getTransactionInfoByBlockNum calls fail |
Use available data, note sample size in report |
| No events in latest block | Low activity period | Expand to more blocks or note "Low activity detected" |
| Energy/bandwidth price API returns long string | Historical data is comma-separated | Parse only the last entry for current price |
Examples
- Network overview dashboard
- Trending activity analysis