calculate_energy_rental_price
Calculate energy rental cost on TRON for new or renewal orders. Returns TRX amount, fees, security deposit, and daily cost, with auto-detection of existing rentals.
Instructions
Calculate the cost to rent a specific amount of energy for a given duration. Returns TRX amount needed, rental rate, fee, total prepayment, security deposit, and daily cost. For NEW rentals: provide energyAmount and durationHours. For RENEWALS: provide energyAmount and receiverAddress. The tool auto-detects existing rentals and calculates the incremental cost (subtracting existing security deposit). durationHours is optional for renewals (defaults to 0 = no additional time).
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": {
"energyAmount": "<energyAmount>"
},
"name": "calculate_energy_rental_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network. Default: mainnet | |
| energyAmount | Yes | Amount of energy to rent (minimum 300,000 for new rental, minimum 50,000 for renewal) | |
| durationHours | No | Rental duration in hours. Required for new rentals (minimum 1). Optional for renewals (default 0 = no additional time). | |
| receiverAddress | No | Receiver address. If provided, checks for existing rental to calculate renewal cost. |