estimate_contract_call
Simulates a TRON smart contract call to return the energy it would use and the TRX it would burn without energy, so you can estimate costs before executing it.
Instructions
Read-only, free, no API key, nothing signed. Simulates a smart contract call on a public node (triggerconstantcontract) and returns the energy it would use and the TRX it would burn without energy. Give the function selector, e.g. "transfer(address,uint256)", and the ABI-encoded parameter hex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Target TRON network: "mainnet" (production) or "nile" (testnet). Defaults to server default. | |
| parameter | Yes | ABI-encoded arguments, hex without 0x | |
| owner_address | Yes | Caller, base58 | |
| contract_address | Yes | Contract, base58 | |
| function_selector | Yes |