Install
openclaw skills install trongrid-contract-analysisAnalyze TRON smart contracts including deployment info, ABI methods, transaction patterns, top callers, energy costs, and safety assessment. Use when a user...
openclaw skills install trongrid-contract-analysisPerform deep analysis of TRON smart contracts — deployment details, method signatures, call patterns, top callers, energy economics, and safety risk assessment.
Run in parallel:
getContractInfo — Contract name, deployer (origin_address), consume_user_resource_percent, origin_energy_limit, creation time, energy usage statsgetContract — Full ABI definition, bytecode, whether ABI is available (indicates open-source status)From the ABI, categorize all methods:
Identify standard interfaces: TRC-20, TRC-721, TRC-1155, proxy/upgradeable patterns.
getContractTransactions — Total count, recent patterns, success/failure rategetEventsByContractAddress — Most frequent events, parameter patternsgetContractInternalTransactions — Inter-contract calls, TRX transfers within executionFrom transaction data, aggregate:
Call estimateEnergy with common method calls to assess:
consume_user_resource_percent)High Risk indicators:
consume_user_resource_percent = 100 (users pay all energy)Medium Risk indicators:
Positive indicators:
## 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 | 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 |