tron-resource

tron-resource is a skill for Claude Code from TronLink/tronlink-skills. It costs 141 tokens per session (1,950 once invoked), scanned A, original, MIT.

A TRON resource calculator for Energy and Bandwidth, the two network resources used to process TRON transactions. Energy is mainly used by smart-contract calls, while Bandwidth is used by all transactions.

In plain words
What is it for?
It is for checking resource amounts and prices, estimating transaction costs, viewing chain parameters, comparing resource options, and finding energy rentals.
Why use it?
It helps explain and estimate why a TRON transaction may burn TRX or fail because the account lacks enough network resources.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the tronlink-skills plugin — 6 skills shipped together

Good fit It is for checking resource amounts and prices, estimating transaction costs, viewing chain parameters, comparing resource options, and finding energy rentals.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add TronLink/tronlink-skills
Claude Code
/plugin install tronlink-skills

Made for: Claude Code.

Or install tronlink-skills, the plugin that ships this one along with the rest of its 6 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tron-resource

README.md
[![agentmods](https://agentmods.dev/badge/skills/tronlink/tronlink-skills/tron-resource/github.svg)](https://agentmods.dev/skills/tronlink/tronlink-skills/tron-resource)
Your own site
<a href="https://agentmods.dev/skills/tronlink/tronlink-skills/tron-resource"><img src="https://agentmods.dev/badge/skills/tronlink/tronlink-skills/tron-resource/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tron-resource

Your own site · 80×15
<a href="https://agentmods.dev/skills/tronlink/tronlink-skills/tron-resource"><img src="https://agentmods.dev/badge/skills/tronlink/tronlink-skills/tron-resource.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,950 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00141 $0.01950
Opus 5 $0.00071 $0.00975
Sonnet 5 $0.00028 $0.00390
Haiku 4.5 $0.00014 $0.00195

Measured 10d ago against content hash 6d627bf2f6a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

tron-resource scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tron-resource/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TRON Resource Management (Energy & Bandwidth)

9 commands for resource query, energy estimation, bandwidth estimation, energy price, bandwidth price, transaction cost estimation, chain parameters, energy rental marketplace, and cost optimization.

TRON Resource Model — Essential Knowledge

Unlike Ethereum's gas model, TRON uses TWO separate resources:

Bandwidth

  • Consumed by ALL transactions (proportional to transaction size in bytes)
  • Every account gets 600 free Bandwidth daily (resets at 00:00 UTC)
  • A basic TRX transfer uses ~267 Bandwidth (covered by free allowance)
  • If insufficient: TRX is burned at a rate of ~1000 SUN per Bandwidth point

Energy

  • Consumed ONLY by smart contract calls (TRC-20 transfers, DEX swaps, DeFi interactions)
  • No free daily allowance
  • Must be obtained by: freezing TRX (Stake 2.0), renting from marketplace, or burning TRX
  • A USDT transfer typically costs ~32,000–65,000 Energy. If burned, TRX cost = energy × getEnergyFee ÷ 1e6 — ≈ 3–6.5 TRX at the mid-2026 fee of ~100 SUN (was ~13–27 TRX at the old 420-SUN rate). Always check the live fee with energy-price.

Cost Comparison

Operation Energy Needed TRX Burned (no staking) With Staked Energy
TRX transfer 0 0 (free bandwidth) 0
USDT transfer ~65,000 ~3-6.5 TRX 0 TRX
SunSwap V2 swap ~65,000-200,000 ~6.5-20 TRX 0 TRX
Contract deployment ~200,000-1,000,000+ ~20-100+ TRX 0 TRX
Approve token ~30,000 ~3 TRX 0 TRX

⚠️ The TRX-burned column assumes the live getEnergyFee100 SUN (mid-2026) and scales linearly with it (it was 420 SUN in 2023–2024 → ~4.2× these numbers). Run energy-price for the current value before quoting costs.

Resolve the CLI path

Every command below runs node "$TRON_API". Set $TRON_API once per session so it works no matter how the skill was installed (Claude Code plugin, install.sh~/.tronlink-skills, or inside the cloned repo):

Read the full file on GitHub · 177 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 177 lines · 141 tokens per session scan A 6d627bf2f6a4

Subscribe to this mod's changes

tron-resource is a skill published in the GitHub repository TronLink/tronlink-skills (6 stars, last pushed 2mo ago), licensed MIT. It adds 141 tokens to every session and 1,950 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.