rent_energy
Rent TRON network energy from JustLend to a specified receiver. For new rentals, set energy amount (min 300,000) and duration (min 1 hour). For renewals, existing order duration is reused. Automatically calculates required TRX.
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 |