estimate_transaction_cost
Estimate cost of a TRON transaction BEFORE sending. Aliases: estimate_cost, calculate_cost, transaction_cost, energy_cost, transfer_cost. Calculate exactly how much energy, bandwidth, and TRX a TRON transaction will cost before sending it. Use this to answer questions like "how much does a USDT transfer cost?" or "what will it cost me to send 100 USDT to address X?". Returns: energy units needed, bandwidth needed, TRX cost if you burn directly, and TRX cost if you rent energy from Merx (typically 70-80% cheaper). Supports trc20_transfer (e.g. USDT/USDC), trc20_approve, trx_transfer, and custom contract calls. No auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Token amount (as string). | |
| operation | Yes | Transaction type. | |
| parameter | No | ABI-encoded parameter (custom). | |
| to_address | No | Recipient TRON address. | |
| from_address | No | Sender TRON address. | |
| token_address | No | TRC20 contract address. | |
| contract_address | No | Contract address (custom). | |
| function_selector | No | Function selector (custom). |