# Tron swap

> Tron swap is an open-source agent skill for finance and payments. Quotes and routes token swaps on TRON DEXes and tracks swap transaction status. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/TronLink/tronlink-skills/tree/main/skills/tron-swap
- **Repository:** https://github.com/tronlink/tronlink-skills
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** tron-swap
- **Collection:** https://github.com/TronLink/tronlink-skills
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/TronLink/tronlink-skills/tree/HEAD/skills/tron-swap)
- [License: MIT](https://github.com/TronLink/tronlink-skills/tree/HEAD/skills/tron-swap)

## Features

- **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

## Install

### Claude Code

This skill ships in the `tronlink-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add TronLink/tronlink-skills
/plugin install tronlink-skills@tronlink-skills
```

Or copy only this skill to `~/.claude/skills/tron-swap`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/tron-swap` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/tron-swap` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/TronLink/tronlink-skills.git --path skills/tron-swap
```

Or copy the folder to `~/.gemini/skills/tron-swap` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/tron-swap`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/TronLink/tronlink-skills.git
```

Then 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.

## 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.

## Alternatives

- [Tron token](https://ai-powered.com/skills/tron-token): Tron token is an open-source agent skill for finance and payments.
- [Tron market](https://ai-powered.com/skills/tron-market): Tron market is an open-source agent skill for finance and payments.
- [Tron wallet](https://ai-powered.com/skills/tron-wallet): Tron wallet is an open-source agent skill for finance and payments.
- [Swap planner](https://ai-powered.com/skills/swap-planner): Swap planner is an open-source agent skill for finance and payments.
- [Trust wallet API](https://ai-powered.com/skills/trust-wallet-api): Trust wallet API is an open-source agent skill for finance and payments.
- [Tron staking](https://ai-powered.com/skills/tron-staking): Tron staking is an open-source agent skill for finance and payments.
- [Swap tokens](https://ai-powered.com/skills/swap-tokens): Swap tokens is an open-source agent skill for finance and payments.
- [Swap integration](https://ai-powered.com/skills/swap-integration): Swap integration is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/tron-swap
