一键导入
swap-tokens
Build secure unsigned transactions for token swaps on SunSwap DEX with automatic path finding, slippage protection, and transaction validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build secure unsigned transactions for token swaps on SunSwap DEX with automatic path finding, slippage protection, and transaction validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage address aliases and transfer history. Auto-create contact names from transfer memos, track transfer counts, and quickly access frequently-used addresses.
Analyze address behavior patterns from transaction history. Detect anomalies, identify activity patterns, and alert on suspicious changes.
Check TRON addresses for security risks using TronScan labels, blacklists, scam detection, and fraud transaction history before interacting.
Scan wallet for token approvals and detect risky unlimited allowances. Critical for security.
Analyze energy costs for TRON transactions and generate rental proposals to save on fees. Compares burning TRX vs renting energy from platforms.
Analyze TRON blockchain transaction errors using AI to provide concise, user-friendly explanations with root causes and actionable solutions.
| name | swap-tokens |
| description | Build secure unsigned transactions for token swaps on SunSwap DEX with automatic path finding, slippage protection, and transaction validation. |
Use this skill when the user wants to:
🔒 Never handles private keys
from skills.swap_tokens.scripts.build_swap import build_swap_transaction
tx = await build_swap_transaction(
user_address="TYourAddress...",
token_in="TRX",
token_out="TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", # USDT
amount_in=100,
slippage=0.5
)
Returns unsigned transaction JSON:
{
"txID": "...",
"raw_data": {
"contract": [...],
"fee_limit": 100000000
},
"visible": true,
"metadata": {
"expected_output": "99.5 USDT",
"minimum_output": "99.0 USDT",
"price_impact": "0.12%",
"path": ["TRX", "WTRX", "USDT"]
}
}
⚠️ Before signing: