rent_energy
Rent TRON energy for any address via JustLend. New rentals require duration and at least 300,000 energy; renewals use remaining duration and minimum 50,000 energy.
Instructions
Rent energy from JustLend for a specified receiver address. Automatically calculates TRX needed based on energy amount. For NEW rentals: durationHours is required (minimum 1 hour), minimum energy is 300,000. For RENEWALS (existing active rental to the same receiver): durationHours is NOT needed — the remaining duration from the existing order is used automatically. Minimum energy for renewal is 50,000. Pre-checks: rental not paused, amount within limits, sufficient TRX balance.
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 (minimum 1 hour). Required for new rentals. Ignored for renewals (uses existing order's remaining duration). | |
| receiverAddress | Yes | Address that will receive the energy |