Loading...
Loading...
This skill should be used when the user asks about 'TRON energy', 'TRON bandwidth', 'how much energy do I need', 'energy cost on TRON', 'bandwidth insufficient', 'resource delegation on TRON', 'rent energy on TRON', 'TRON transaction fee', 'why is my TRON transaction expensive', 'optimize TRON costs', or mentions Energy, Bandwidth, resource management, fee estimation, or cost optimization on the TRON network. This is a TRON-specific concept with no direct equivalent on EVM chains. Do NOT use for staking/voting — use tron-staking. Do NOT use for balance queries — use tron-wallet.
npx skill4agent add tronlink/tronlink-skills tron-resource| Operation | Energy Needed | TRX Burned (no staking) | With Staked Energy |
|---|---|---|---|
| TRX transfer | 0 | 0 (free bandwidth) | 0 |
| USDT transfer | ~65,000 | ~13-27 TRX | 0 TRX |
| SunSwap V2 swap | ~65,000-200,000 | ~13-40 TRX | 0 TRX |
| Contract deployment | ~200,000-1,000,000+ | ~40-200+ TRX | 0 TRX |
| Approve token | ~30,000 | ~6-12 TRX | 0 TRX |
node scripts/tron_api.mjs resource-info --address <TRON_ADDRESS>node scripts/tron_api.mjs estimate-energy \
--contract <CONTRACT_ADDRESS> \
--function <FUNCTION_SIGNATURE> \
--params <PARAMS> \
--caller <CALLER_ADDRESS># Estimate energy for USDT transfer
node scripts/tron_api.mjs estimate-energy \
--contract TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t \
--function "transfer(address,uint256)" \
--params "<TO_ADDRESS>,1000000" \
--caller <YOUR_ADDRESS>node scripts/tron_api.mjs estimate-bandwidth --tx-size <BYTES>node scripts/tron_api.mjs energy-pricenode scripts/tron_api.mjs energy-rental --amount <ENERGY_NEEDED>node scripts/tron_api.mjs optimize-cost --address <TRON_ADDRESS>User wants to do a smart contract operation?
├── Check energy: resource-info --address <addr>
├── Has enough energy? → Proceed
└── Not enough energy?
├── Frequent user (daily TRC-20 transfers)?
│ └── Recommend: Freeze TRX for Energy (tron-staking)
├── Occasional user (1-2 tx/week)?
│ └── Recommend: Rent energy from marketplace
└── One-time user?
└── Recommend: Accept TRX burn (simplest)