trongrid-contract-analysis
Analyze TRON smart contracts including deployment info, ABI methods, transaction patterns, top callers, energy costs, and safety assessment. Use when a user asks about a smart contract, wants to verify contract safety, check what a contract does, identify top callers, or detect potential scams. Covers TRC-20/TRC-721 identification, open-source verification, and risk scoring.
Best use case
trongrid-contract-analysis is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Analyze TRON smart contracts including deployment info, ABI methods, transaction patterns, top callers, energy costs, and safety assessment. Use when a user asks about a smart contract, wants to verify contract safety, check what a contract does, identify top callers, or detect potential scams. Covers TRC-20/TRC-721 identification, open-source verification, and risk scoring.
Teams using trongrid-contract-analysis should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/tron-contract-analysis/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How trongrid-contract-analysis Compares
| Feature / Agent | trongrid-contract-analysis | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Analyze TRON smart contracts including deployment info, ABI methods, transaction patterns, top callers, energy costs, and safety assessment. Use when a user asks about a smart contract, wants to verify contract safety, check what a contract does, identify top callers, or detect potential scams. Covers TRC-20/TRC-721 identification, open-source verification, and risk scoring.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Contract Analysis Perform deep analysis of TRON smart contracts — deployment details, method signatures, call patterns, top callers, energy economics, and safety risk assessment. # MCP Server - **Prerequisite**: [TronGrid MCP Guide](https://developers.tron.network/reference/mcp-api) ## Instructions ### Step 1: Fetch Contract Basics Run in parallel: 1. `getContractInfo` — Contract name, deployer (origin_address), `consume_user_resource_percent`, `origin_energy_limit`, creation time, energy usage stats 2. `getContract` — Full ABI definition, bytecode, whether ABI is available (indicates open-source status) ### Step 2: Parse Contract Methods From the ABI, categorize all methods: - **Read-only** (view/pure): Safe calls, no state changes - **State-changing**: transfers, approvals, settings - **Admin/Owner**: privileged ops (mint, pause, blacklist, upgrade) - **Events**: what the contract logs Identify standard interfaces: TRC-20, TRC-721, TRC-1155, proxy/upgradeable patterns. ### Step 3: Analyze Transaction Activity 1. `getContractTransactions` — Total count, recent patterns, success/failure rate 2. `getEventsByContractAddress` — Most frequent events, parameter patterns 3. `getContractInternalTransactions` — Inter-contract calls, TRX transfers within execution ### Step 4: Identify Top Callers From transaction data, aggregate: - Top 5 by transaction count - Top 5 by value (TRX or token amount) - Classify callers: exchange, bot, regular user, other contract ### Step 5: Estimate Energy Costs Call `estimateEnergy` with common method calls to assess: - Typical energy cost per transaction type - Whether the contract is energy-efficient - Cost split between user and contract owner (based on `consume_user_resource_percent`) ### Step 6: Safety Assessment **High Risk indicators:** - No ABI (unverified/closed source) - Unlimited mint capability - Pause/freeze can lock user funds - Blacklist function, self-destruct, hidden transfer fees - Proxy pattern (upgradeable logic) - `consume_user_resource_percent = 100` (users pay all energy) **Medium Risk indicators:** - Very few unique callers vs. high tx count - Recently created with sudden high activity - Admin functions without timelock/multisig **Positive indicators:** - Open-source verified, standard implementation - Timelock on admin functions, multisig requirements - Long history with consistent activity, diverse callers ### Step 7: Compile Contract Report ``` ## Contract Analysis: [address] ### Deployment - Name: [name] | Deployer: [address] - Deployed: [date] | Open Source: [Yes/No] - Standard: [TRC-20/TRC-721/Custom] ### Methods - Total: [count] (Read: [X], Write: [Y], Admin: [Z]) ### Top Methods (by call frequency) | Method | Calls | Avg Energy | |--------|-------|------------| | transfer() | XX,XXX | X,XXX | ### Top Callers | Address | Tx Count | Label | |---------|----------|-------| | TXxx... | X,XXX | [Exchange/Bot/Unknown] | ### Activity - Total Txs: [count] | Daily Avg: [count] - Success Rate: [X.X%] | Unique Callers: [count] ### Energy Economics - User Pays: [X%] | Avg Energy/Tx: [amount] ### Safety Score: [Safe / Caution / High Risk] - Risk Factors: [list] - Positive Factors: [list] - Recommendation: [actionable advice] ``` ## Error Handling | Error | Cause | Resolution | |-------|-------|------------| | No ABI found | Contract not verified or ABI cleared | Note as unverified; analyze bytecode patterns and transaction data instead | | Address is not a contract | Regular account address provided | Inform user this is a regular account, suggest using trongrid-account-profiling skill | | No transactions | Newly deployed or unused contract | Report as inactive; check deployer's other contracts for context | | Contract self-destructed | Contract no longer exists on-chain | Inform user; historical tx data may still be available | ## Examples - [Analyze USDT contract](examples/analyze-usdt-contract.md) - [Check contract safety](examples/check-contract-safety.md)
Related Skills
gate-info-trendanalysis
Trend and technical analysis. Use this skill whenever the user asks for technical or trend analysis of one coin. Trigger phrases include: technical analysis, K-line, RSI, MACD, trend, support, resistance. MCP tools: info_markettrend_get_kline, info_markettrend_get_indicator_history, info_markettrend_get_technical_analysis, info_marketsnapshot_get_market_snapshot.
gate-exchange-marketanalysis
The market analysis function of Gate Exchange, such as liquidity, momentum, liquidation, funding arbitrage, basis, manipulation risk, order book explainer, slippage simulation. Use when the user asks about liquidity, depth, slippage, buy/sell pressure, liquidation, funding rate arbitrage, basis/premium, manipulation risk, order book explanation, or slippage simulation (e.g. market buy $X slippage). Trigger phrases: liquidity, depth, slippage, momentum, buy/sell pressure, liquidation, squeeze, funding rate, arbitrage, basis, premium, manipulation, order book, spread, slippage simulation.
gate-info-coinanalysis
Coin comprehensive analysis. Use this skill whenever the user asks to analyze a single coin. Trigger phrases include: analyze, how is, worth buying, look at. MCP tools: info_coin_get_coin_info, info_marketsnapshot_get_market_snapshot, info_markettrend_get_technical_analysis, news_feed_search_news, news_feed_get_social_sentiment.
trailofbits-official-building-secure-contracts
Brought to you by [Trail of Bits](https://www.trailofbits.com/), this repository offers guidelines and best practices for developing secure smart contracts. Contributions are welcome, you can contribute by following our [contributing guidel
smart-contract-security-scanner
Scan smart contracts for vulnerabilities and generate audit checklists.
uniswap-pool-analysis
Analyze Uniswap pool data including liquidity distribution, fee tiers, tick ranges, and TVL. Use when the user asks about pool metrics, liquidity analysis, or wants to query on-chain pool state.
deploying-contracts-on-base
Deploys smart contracts to Base using Foundry. Covers forge create commands, contract verification, testnet faucet setup via CDP, and BaseScan API key configuration. Use when deploying Solidity contracts to Base Mainnet or Sepolia testnet. Covers phrases like "deploy contract to Base", "forge create on Base", "verify contract on BaseScan", "get testnet ETH", "Base Sepolia faucet", "how do I deploy to Base", or "publish my contract".
nansen-holder-analysis
Is this token held by quality wallets or retail noise? SM holder ratio, flow breakdown by label, and recent buyer quality.
market-analysis
Patterns for DeFi market analysis, screening, and comparison using DefiLlama MCP tools. Covers valuation ratios (P/S, P/F), growth screening with pct_change columns, multi-metric protocol comparison, category comparison, and cross-entity analysis. Use when users ask to compare protocols, screen for undervalued projects, analyze growth trends, or do sector analysis.
technical-analysis
Use this skill when the user asks about crypto technical analysis, technical indicators, trend direction, overbought/oversold, support/resistance, momentum, volatility, volume, or money flow analysis. Trigger keywords include: technical analysis, indicator, trend, overbought, oversold, support, resistance, momentum, volatility, volume, money flow, capital inflow, capital outflow, MACD, RSI, KDJ, BOLL, SuperTrend, EMA, MA, SAR, ATR, VWAP, FIB, StochRSI, MFI, DMI, OBV, ROC, CCI, WR, VOL, DMA, MTM, EMV, AVL, DC, CMF, Fractal. This applies even when the user doesn't say "indicator" explicitly — phrases like "is BTC overbought", "what's the trend", "where is support", "4h analysis", "should I buy/sell" all point to this skill.
smart-contract-security
Analyze Solidity code for vulnerabilities and get security checklists for auditing.
8004-skill
ERC-8004 Trustless Agents - Register and manage AI agent identities on TRON and BSC blockchains with on-chain reputation tracking