Estimate Cost
estimate_costCalculate the cost of purchasing TRON Energy or Bandwidth for a given number of transactions. Specify transaction type and resource to get the energy needed and cost in TRX.
Instructions
Calculate the cost of purchasing TRON Energy or Bandwidth. Provide transaction count and type to get the energy needed and cost in TRX.
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": {
"txCount": "<txCount>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txType | No | Transaction type (default: trc20_transfer). trc20_transfer_new = first-time transfer to an address. | |
| txCount | Yes | Number of transactions | |
| resourceType | No | Resource type (default: ENERGY) | |
| durationMinutes | No | Duration in minutes. Allowed: 2, 5, 10, 15, 30, 60, 360, 1440, 10080, 43200. Default: 60. |