TronScan Contract Analysis
by @sshnii
Analyze TRON contracts: deploy info, hot methods, top callers, open-source status, transaction count. Use when user asks "contract verification", "contract s...
clawhub install tronscan-contract-analysisπ About This Skill
name: tronscan-contract-analysis description: | Analyze TRON contracts: deploy info, hot methods, top callers, open-source status, transaction count. Use when user asks "contract verification", "contract safety", "hot methods", "who is calling the contract", or provides a contract address. Do NOT use for token supply/holders (use tronscan-token-scanner); address balance (use tronscan-account-profiler). metadata: author: tronscan-mcp version: "1.0" mcp-server: https://mcp.tronscan.org/mcp
Contract Analysis
Overview
| Tool | Function | Use Case | |------|----------|----------| | getContractDetail | Contract info | Balance, verification, call count, method map | | getContractCallStatistic | Call stats | Call count, top callers, top methods | | getContractCallers | Caller list | Callers and call count for a given day | | getContractEvents | Events | Transfer events and method calls | | getContractList | Contract list | Search by name/address, sort, paginate | | getContractEnergyStatistic | Energy usage | Total and daily energy consumption | | getContractTriggerTransactions | Trigger txs | Contract-triggered transactions in time range | | getContractAnalysis | Daily analysis | Balance, transfers, energy, bandwidth, calls, fee | | getCallerAddressStatistic | Caller address stats | Contract call count per period with max/min | | getContractTriggerStatistic | Daily trigger stats | Daily call count for a contract in a time range | | getHolderTokenBasicInfo | Holder token info | Token balance and holding duration for an account |
Use Cases
1. Deploy & Basic Info: Use getContractDetail for balance, verification status, call count, method mapping.
2. Hot Methods: Use getContractCallStatistic for top called methods.
3. Top Callers: Use getContractCallStatistic or getContractCallers for top 5 or full caller list.
4. Open-source / Verification: Verification status is in getContractDetail.
5. Transaction Count: Use getContractDetail or getContractTriggerTransactions for call/tx volume.
6. Malicious Clues: Combine events (getContractEvents), energy (getContractEnergyStatistic), and call stats to spot unusual patterns.
MCP Server
Tools
getContractDetail
getContractDetail β Get contract details (balance, verification status, call count, method map)contract (contract address) β Note: parameter name is contract, not address.getContractCallStatistic
getContractCallStatistic β Get contract call stats (call count, top callers, top methods)getContractCallers
getContractCallers β Get all callers and call count for a given daygetContractEvents
getContractEvents β Get contract events (transfer events and method calls)getContractList
getContractList β Get contract list with search by name/address, sort, paginationgetContractEnergyStatistic
getContractEnergyStatistic β Get contract energy consumption (total and daily)getContractTriggerTransactions
getContractTriggerTransactions β Get contract-triggered transactions in a time rangegetContractAnalysis
getContractAnalysis β Get contract daily analysis (balance, transfers, energy, bandwidth, calls, fee)getCallerAddressStatistic
getCallerAddressStatistic β Get contract call count per period (with max/min) on TRONstartTimestamp, endTimestamp (required); optional limit.getContractTriggerStatistic
getContractTriggerStatistic β Get daily call count for a contract within a time rangeaddress, startTimestamp, endTimestamp (all required).getHolderTokenBasicInfo
getHolderTokenBasicInfo β Get token balance and holding duration for an accountaccountAddress, tokenAddress (both required).Troubleshooting
Invalid contract address
Ensure the address is a valid TRON contract (not an EOA address). Use TRC20/721/1155 contract address for token contracts.Notes
getContractCallStatistic.getContractDetail returns contract-level verification status (whether the contract source code has been open-sourced and verified on TronScan). This is a code-level check only β it does not indicate whether the token project itself has been officially endorsed or certified.β‘ When to Use
π Tips & Best Practices
getContractCallStatistic.getContractDetail returns contract-level verification status (whether the contract source code has been open-sourced and verified on TronScan). This is a code-level check only β it does not indicate whether the token project itself has been officially endorsed or certified.