tronlink
Work with TronLink wallet - manage TRX and TRC-20 tokens, stake for energy/bandwidth, vote for super representatives, and interact with TRON dApps.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- tronlink
- metadata
- { "openclaw": { "install": [ { "id": "python", "bins": [], "kind": "pip", "label": "Install tronpy (pip)", "package": "tronpy" } ], "requires": { "bins": [ "python3" ] } } }
- description
- Work with TronLink wallet - manage TRX and TRC-20 tokens, stake for energy/bandwidth, vote for super representatives, and interact with TRON dApps.
02 资源文件 1
- 参考文档_meta.json274 B
03 SKILL.md 正文
TronLink Wallet
Installation
- Chrome: https://chrome.google.com/webstore/detail/tronlink/ibnejdfjmmkpcnlpebklmnkoeoihofec
- Mobile: iOS App Store / Google Play
Supported Assets
| Type | Examples |
|---|---|
| Native | TRX |
| TRC-20 | USDT, USDC, JST, BTT |
| TRC-10 | Legacy tokens |
| TRC-721 | NFTs |
Check Balance (CLI)
TRX balance:
python3 -c "
from tronpy import Tron
client = Tron()
balance = client.get_account_balance('YOUR_TRONLINK_ADDRESS')
print(f'{balance} TRX')"
Via API:
curl -s "https://api.trongrid.io/v1/accounts/YOUR_ADDRESS" | \
python3 -c "import sys,json; d=json.load(sys.stdin); print(f\"{d['data'][0].get('balance',0)/1e6:.2f} TRX\")"
TRC-20 Token Balance
USDT:
python3 -c "
from tronpy import Tron
client = Tron()
contract = client.get_contract('TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t')
balance = contract.functions.balanceOf('YOUR_ADDRESS')
print(f'{balance / 1e6:.2f} USDT')"
Import TRC-20 Token
Assets → Add Token → Custom
Common TRC-20 contracts:
USDT: TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
USDC: TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8
BTT: TAFjULxiVgT4qWk6UZwjqwZXTSaGaqnVp4
JST: TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9
WIN: TLa2f6VPqDgRE67v1736s7bJ8Ray5wYjU7
SUN: TSSMHYeV2uE9qYH95DqyoCuNCzEL1NvU3S
Resources: Energy & Bandwidth
Check resources:
python3 -c "
from tronpy import Tron
client = Tron()
res = client.get_account_resource('YOUR_ADDRESS')
print(f\"Free Bandwidth: {res.get('freeNetUsed', 0)} / {res.get('freeNetLimit', 1500)}\")
print(f\"Energy: {res.get('EnergyUsed', 0)} / {res.get('EnergyLimit', 0)}\")"
Via API:
curl -s "https://api.trongrid.io/v1/accounts/YOUR_ADDRESS/resources" | python3 -m json.tool
Freeze TRX for Resources
In TronLink: Resources → Freeze
| Freeze For | Get |
|---|---|
| Bandwidth | Free transactions |
| Energy | Smart contract calls |
Minimum freeze: 1 TRX Lock period: 14 days (Stake 2.0)
Vote for Super Representatives
Resources → Vote → Select SR
Check votes:
curl -s "https://api.trongrid.io/v1/accounts/YOUR_ADDRESS" | \
python3 -c "
import sys, json
d = json.load(sys.stdin)
votes = d['data'][0].get('votes', [])
for v in votes:
print(f\"{v['vote_address']}: {v['vote_count']} votes\")"
Transaction History
curl -s "https://api.trongrid.io/v1/accounts/YOUR_ADDRESS/transactions?limit=10" | \
python3 -c "
import sys, json
data = json.load(sys.stdin)
for tx in data.get('data', []):
txid = tx['txID'][:16]
type = tx.get('raw_data', {}).get('contract', [{}])[0].get('type', 'Unknown')
print(f'{txid}... | {type}')"
TRC-20 transfers:
curl -s "https://api.trongrid.io/v1/accounts/YOUR_ADDRESS/transactions/trc20?limit=10" | python3 -m json.tool
Network Settings
Settings → Node Settings
Default: https://api.trongrid.io
Custom nodes:
TronGrid: https://api.trongrid.io
Nile Testnet: https://nile.trongrid.io
Shasta Testnet: https://api.shasta.trongrid.io
Connected dApps
Settings → Connected Sites → Manage
Export Account
Settings → Export → Enter password
dApp Browser (Mobile)
Discover → Browse dApps
Popular TRON dApps:
- JustLend (lending)
- SunSwap (DEX)
- JUST (stablecoin)
Transaction Fees
| Operation | Cost |
|---|---|
| TRX transfer | ~1 Bandwidth |
| TRC-20 transfer | ~15,000 Energy |
| Contract call | Varies |
Troubleshooting
Not enough bandwidth:
# Check bandwidth
curl -s "https://api.trongrid.io/v1/accounts/YOUR_ADDRESS/resources" | \
python3 -c "import sys,json; d=json.load(sys.stdin); print(f\"Bandwidth: {d.get('freeNetLimit',0) - d.get('freeNetUsed',0)}\")"
Solution: Wait (regenerates) or freeze TRX
Not enough energy: Solution: Freeze TRX for Energy or pay TRX for transaction
Token not showing: Assets → Add Token → Paste contract address
Transaction pending:
# Check transaction
python3 -c "
from tronpy import Tron
client = Tron()
tx = client.get_transaction('TX_HASH')
print(tx)"
Address Format
- Base58Check encoding
- Starts with 'T'
- 34 characters
- Example: TJYeasTPa6gpBZWqTcP4u1Q7bhLMWBL7ox
Notes
- TronLink is official TRON wallet
- Free bandwidth: 1500/day (regenerates)
- Energy needed for smart contracts
- Stake 2.0: 14-day unlock period
- Voting rewards from Super Representatives
- Mobile has built-in dApp browser
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.