一键导入
transaction-simulator
Simulate transactions before execution to preview outcomes and detect failures. Save gas and prevent errors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Simulate transactions before execution to preview outcomes and detect failures. Save gas and prevent errors.
用 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 | transaction-simulator |
| description | Simulate transactions before execution to preview outcomes and detect failures. Save gas and prevent errors. |
Use this skill BEFORE executing:
Simulates your transaction on a test environment to show:
NO REAL TRANSACTION IS SENT - It's a safe preview!
from skills.transaction_simulator.scripts.simulate_tx import simulate_transaction
# Simulate a swap
tx_data = {
'from': 'TXXXabc...',
'to': 'SunSwap_Router',
'value': 100,
'data': '...' # Transaction data
}
result = await simulate_transaction(tx_data)
if result['success']:
print(f"Expected output: {result['output_amount']}")
print(f"Gas cost: {result['gas_used']}")
else:
print(f"Would fail: {result['error']}")
🎮 Transaction Simulation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Operation: Swap 100 TRX → USDT
Simulation: ✅ SUCCESS
Expected Results:
• Output: 14.85 USDT
• Price: 1 TRX = 0.1485 USDT
• Slippage: 0.5%
• Price Impact: 0.02%
Costs:
• Gas Used: ~50,000 Energy
• Est. Fee: 0.15 TRX
⏱️ Simulation Time: 1.2s
✅ Transaction will succeed
💡 Proceed with confidence!
🎮 Transaction Simulation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Operation: Swap 1000 TRX → SCAM_TOKEN
Simulation: ❌ FAILED
Error: "Transfer failed - Honeypot detected"
Details:
• Cannot sell this token after buying
• Contract has blacklist function
• Sell tax: 99%
🚨 DO NOT EXECUTE THIS TRANSACTION!
Saved you: ~1000 TRX + gas fees
TronGrid Simulation API (if available)
Local Fork Simulation
Bytecode Analysis
Should auto-run before:
✅ 100% Safe - No real transactions sent ✅ No costs - Simulation is free ✅ Privacy - Simulations run locally when possible