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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner_address": "<owner_address>",
"contract_address": "<contract_address>",
"function_selector": "<function_selector>",
"parameter": "<parameter>"
},
"name": "estimate_contract_call"
}
}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 |