بنقرة واحدة
trc20-token-toolkit
Universal TRC20 token operations — transfer, approve, query balances, and fetch metadata.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Universal TRC20 token operations — transfer, approve, query balances, and fetch metadata.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Execute token swaps, manage liquidity, and query market data on SunSwap DEX via the sun-cli.
Create meme tokens on SunPump (`sun sunpump launch`), trade them — both pre-launch (bonding curve via `sun sunpump buy/sell`) and post-launch (SunSwap via `sun swap`) — and query token info, rankings, holders, portfolios, and trade history.
Pay for x402-enabled Agent endpoints using ERC20 tokens (USDT/USDC) on EVM or TRC20 tokens (USDT/USDD) on TRON.
Use when the user asks to generate an X/Twitter daily digest or says phrases such as "生成X日报", "生成 x 日报", "X日报", "推特日报", "Twitter digest", or wants an agent to analyze their own X/Twitter mentions, home timeline, reply opportunities, and daily social-media summaries. This skill is API-only.
Use when the user wants to install or authorize xurl for X/Twitter, generate "生成X日报", "X日报", "推特日报", or "Twitter digest" from the local xurl CLI, or optionally register/troubleshoot the hosted X MCP bridge.
BANK OF AI account query and recharge skill. Use for requests like 'recharge 1 usdt', '给 BANK OF AI 充值 1 USDT', or to query BANK OF AI balance/orders. Recharge uses the remote MCP endpoint https://recharge.bankofai.io/mcp with the single `recharge` tool.
| name | TRC20 Token Toolkit |
| description | Universal TRC20 token operations — transfer, approve, query balances, and fetch metadata. |
| version | 1.0.0 |
| dependencies | ["node >= 18.0.0","tronweb"] |
| tags | ["trc20","token","tron","transfer","utility"] |
Universal TRC20 token operations for AI agents on TRON. Check balances, transfer tokens, manage approvals, and fetch metadata for any TRC20 token. Supports symbol-based lookups for common tokens (USDT, USDD, SUN, etc.) and direct contract addresses for any token.
Wallet required: Run
agent-wallet listfirst.
If no wallets exist, invokebankofai-guide(Section C — Wallet Guard) before proceeding.
cd trc20-toolkit-skill && npm install
export TRON_PRIVATE_KEY="<your-private-key>"
export TRON_NETWORK="mainnet"
export TRONGRID_API_KEY="<optional>"
[!CAUTION] Never display or log the private key.
info.js — Token Metadatanode scripts/info.js <tokenAddressOrSymbol>
node scripts/info.js USDT
node scripts/info.js TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t
Output: name, symbol, decimals, total_supply
balance.js — Token Balances# Single token balance
node scripts/balance.js USDT
node scripts/balance.js USDT TWalletAddress123
# Batch balance check
node scripts/balance.js --batch USDT,USDD,SUN
node scripts/balance.js --batch USDT,USDD TWalletAddress123
Output: trx_balance, tokens[] (each with symbol, balance, decimals)
Behavior note: In --batch mode, invalid token inputs are returned as per-item errors instead of aborting the entire batch.
transfer.js — Transfer Tokens| Parameter | Required | Description |
|---|---|---|
token | Yes | Token address or symbol |
toAddress | Yes | Recipient TRON address |
amount | Yes | Human-readable amount |
--dry-run | No | Validate only, no transaction |
node scripts/transfer.js USDT TRecipientAddress 10.5 --dry-run
node scripts/transfer.js USDT TRecipientAddress 10.5
Output: status, tx_id, amount, symbol
Validation rules: Recipient addresses must be valid TRON addresses, self-transfers are rejected, and amount must be greater than 0 even in --dry-run.
approve.js — Manage Allowances# Set allowance (use the exact amount needed, never unlimited)
node scripts/approve.js USDT TSpenderAddress 1000 --dry-run
node scripts/approve.js USDT TSpenderAddress 1000
# Check current allowance
node scripts/approve.js USDT TSpenderAddress --check
node scripts/approve.js USDT TSpenderAddress --check TWalletAddress
Output: allowance, is_max, status, tx_id
Validation rules: Spender and optional owner addresses must be valid TRON addresses, amount must be greater than 0, and unlimited approvals remain disabled.
node scripts/balance.js USDT
node scripts/transfer.js USDT TRecipient 100 --dry-run
# Confirm with user
node scripts/transfer.js USDT TRecipient 100
node scripts/balance.js --batch USDT,USDD,SUN,JST,BTT
[!CAUTION]
--dry-run first.T and are valid TRON base58 addresses.permissionId selection may need a different transaction flow.Common tokens resolved by symbol: USDT, USDD, USDC, WTRX, SUN, JST, BTT, WIN.
Any TRC20 token can be used via its contract address.
See resources/well_known_tokens.json for the full list.
| Problem | Solution |
|---|---|
Unknown token symbol | Use the full contract address instead |
Insufficient balance | Check balance first with balance.js |
TRON_PRIVATE_KEY required | Set the environment variable |
Cannot find module 'tronweb' | Run npm install |
Version 1.0.0 — Created by M2M Agent Registry for Bank of AI