calculate_energy_rental_price
Calculate the TRX cost to rent energy on TRON for a specified amount and duration. Handles new rentals and renewals by detecting 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).
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. |