
Tron swap
Quotes and routes token swaps on TRON DEXes and tracks swap transaction status
Tron swap is an open-source agent skill for finance and payments. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 8
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Tron swap
This skill gives an agent read-only access to token swap quotes on the TRON network. It aggregates liquidity from SunSwap V2 and V3 and Sun.io, returning expected output, a minimum received amount at a chosen slippage, price impact, fee, route path and estimated energy cost. A separate status query reports confirmation, block number, and resources used for a given transaction hash.
The skill runs a bundled Node.js CLI and walks the agent through pre-flight checks: confirming the Node version, reviewing available energy, checking a token's security snapshot and pool liquidity, and estimating TRX burn when energy is short. It includes reference tables for router contracts, typical energy and bandwidth costs, and suggested slippage by token type. It does not sign or broadcast transactions.
It expects Node.js 24.22.3 and a TRON address for resource checks, with token contract addresses or TRX as inputs. Staking and token research are handled by other skills in the same repository.
When your agent uses it
This skill should be used when the user asks to 'swap tokens on TRON', 'buy token on TRON', 'sell TRC-20 token', 'trade TRX for USDT', 'exchange tokens on SunSwap', 'DEX trade on TRON', 'get swap quote on TRON', 'best route for TRON swap', or mentions swapping, trading, buying, selling, or exchanging tokens on the TRON network. Aggregates liquidity from SunSwap V2/V3, Sun.io, and other TRON DEXes. Do NOT use for staking — use tron-staking. Do NOT use for token research — use tron-token.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (5 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the tronlink-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add TronLink/tronlink-skills
/plugin install tronlink-skills@tronlink-skillsOr copy only this skill to ~/.claude/skills/tron-swap:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tron-swap &&
cp -R "$tmp/skills/tron-swap" ~/.claude/skills/tron-swap &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/tron-swap inside it instead.
Copy the skill folder to ~/.agents/skills/tron-swap to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tron-swap &&
cp -R "$tmp/skills/tron-swap" ~/.agents/skills/tron-swap &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/tron-swap inside it instead.
Copy the skill folder to ~/.cursor/skills/tron-swap to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tron-swap &&
cp -R "$tmp/skills/tron-swap" ~/.cursor/skills/tron-swap &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/tron-swap inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/TronLink/tronlink-skills.git --path skills/tron-swapOr copy the folder to ~/.gemini/skills/tron-swap yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/tron-swap:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tron-swap &&
cp -R "$tmp/skills/tron-swap" ~/.copilot/skills/tron-swap &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/tron-swap inside it instead.
Get the folder:
git clone --depth 1 https://github.com/TronLink/tronlink-skills.gitThen copy tronlink-skills/skills/tron-swap into your agent's skills folder as tron-swap. Agents that support SKILL.md read one folder per skill.
What it does
- Swap quotes
- Returns expected output, minimum received and price impact for a token pair.
- Route selection
- Shows the chosen path and pool versions, including multi-hop routes through WTRX.
- Slippage control
- Accepts a slippage percentage between 0 and 50 with a 0.5 percent default.
- Energy cost estimates
- Estimates energy and TRX burn for TRX and TRC-20 swaps and approvals.
- Pre-trade safety checks
- Runs token security snapshots, liquidity checks and energy checks before trading.
- Transaction status tracking
- Reports confirmation, block number, energy and bandwidth used for a transaction.
Good for
- Get a quote for swapping 100 TRX into USDT on TRON
- Find the best route for a TRC-20 to TRC-20 trade
- Check whether my account has enough energy before swapping
- Check the status of a swap transaction by its hash
- Estimate the TRX cost of selling a TRC-20 token
Tron swap FAQ
Does Tron swap execute trades?
No. The commands quote and inspect swaps and do not sign or broadcast transactions.
What does the skill need to run?
It needs Node.js 24.22.3 and the bundled tron_api CLI. Resource checks require a TRON address.
How are amounts passed in?
Amounts are human-readable, so 100 means 100 TRX rather than the smallest unit.
Which DEXes does Tron swap cover?
The skill's router reference lists SunSwap V2, SunSwap V3 and Sun.io, and mentions other TRON DEXes.
How do I install Tron swap in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/tron-swap to use it in all your projects, or to .claude/skills/tron-swap in one project. Or install the tronlink-skills plugin, which includes it: /plugin marketplace add TronLink/tronlink-skills, then /plugin install tronlink-skills@tronlink-skills.
Does Tron swap run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Tron swap?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Tron swap?
The closest alternatives to Tron swap are Tron token, Tron market, Tron wallet, Swap planner and Trust wallet API.
Where this comes from
- Description: from the skill's own SKILL.md.
More from TronLink/tronlink-skills

Gives agents TRON token prices, candlestick data, transfers and whale alerts
- Open source
- 8 GitHub stars
- Finance and payments

Estimates TRON Energy and Bandwidth costs and guides resource choices for transactions
- Open source
- 8 GitHub stars
- Developer tools

Read-only TRON staking info: SR list, staking status and APY estimates
- Open source
- 8 GitHub stars
- Finance and payments

Looks up TRON tokens: metadata, holders, rankings, contract checks and a risk snapshot
- Open source
- 8 GitHub stars
- Finance and payments

Check TRON wallet balances, TRC-20 holdings, history and token approvals (read-only)
- Open source
- 8 GitHub stars
- Finance and payments



