estimate_contract_call
Estimate energy and bandwidth costs for TRON smart contract calls. Compare rental versus burn pricing to optimize transaction expenses.
Instructions
Estimate energy and bandwidth cost for a smart contract call. Compares rental vs burn cost. No auth required.
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": {
"contract_address": "<contract_address>",
"function_selector": "<function_selector>"
},
"name": "estimate_contract_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_address | Yes | Contract TRON address. | |
| function_selector | Yes | Function signature, e.g. "transfer(address,uint256)". | |
| parameter | No | ABI-encoded parameter hex (optional). | |
| caller_address | No | Caller TRON address for simulation (optional). |