Energy Rental¶
About this page
Protocol: JustLend DAO Energy Rental (one-to-many TRON Energy marketplace) · Network: TRON Mainnet · Energy Rental contract: TU2MJ5Veik1LRAgjeSzEdvmDYx7mefJZvd (see Deployed Contracts) · Receiving address constraint: must be a regular account, not a contract · Units: prepayment is denominated in TRX (6 decimals); on-chain amounts use sun (1 TRX = 10⁶ sun; see Glossary → sun); rental duration is in seconds, capped at 30 days. · Refund: unused Energy Fee + (conditionally) the Security Deposit and Liquidation Penalty are refunded on timely return. · Snapshot caveat: the USD cost tables further down were captured at a single past moment — see the snapshot warning below.
JustLend DAO integrates the energy rental protocol, which aims to provide users with a more convenient and cheaper way to obtain energy. The energy rental protocol is open to all TRON network users and supports one-to-many renting, enabling users to rent energy not only for themselves but also for others. The user-friendly interface is designed to accommodate users managing multiple orders seamlessly.
When renting energy, you need to specify three key parameters based on your requirements, which are Rental Amount, Rental Duration and Receiving Address.
-
Rental Amount: the amount of energy you need.
- The actual energy rented is calculated based on the corresponding proxy TRX amount. Due to market fluctuations, the rented energy amount may experience slight changes during the transaction;
- Note: the energy used will be fully restored after 24 hours and can be used again;
- If you are not sure about the amount of energy you need, the rule of thumb for a USDT transfer is ~64,000 energy when the receiving address already holds USDT (warm storage slot) and ~130,000 energy when the receiver is creating a fresh USDT balance (cold storage slot — the extra ~66K covers the new storage write). Other contracts vary widely; use the dApp's per-transaction estimator or the
estimate_lending_energyMCP tool for non-USDT flows. The historical "120,000 energy per USDT transfer" approximation is a midpoint that under-rents in the cold-storage case.
-
Rental Duration: this is the time you need to use the energy.
- Supports renting by the hour or by the day, with a maximum single rental period of 30 days;
- Rental duration is calculated at the time of placing the order. Market price fluctuations may result in slight increases or decreases in actual usage time;
- Note: Shorter rental durations are more affected by market price volatility. If the rental duration is less than 3 hours, please be sure to cancel the rent immediately after completing the transaction. This will prevent early liquidation due to price fluctuations and avoid unnecessary losses.
-
Receiving Address: the address where the rented energy will be allocated.
- If you rent for yourself, this field is not required. If renting for another address, this field is required.
- Note: Renting for contract addresses is not supported.
Placing An Order¶
Once the parameters are set, you can place an order to proceed with the transaction. The rental protocol will require a prepayment, which includes Energy Fee, Security Deposit and Liquidation Penalty:
-
Energy Fee: the energy you use is charged based on the time you use. The longer you use, the more you will be charged.
- The prepaid amount includes the full Energy Fee for your entire rental period. If you return the energy early, the unused portion of the Energy Fee will be refunded proportionally based on the actual usage time.
-
Security Deposit: a deposit equivalent to one day’s energy fee will be charged based on the amount of energy you rent.
- Since it takes 24 hours, or 1 day, for energy to recover after use, the security deposit is charged based on 1 day.
- when you return to the energy:
- If the energy has been fully restored, the Security Deposit will be fully refunded;
- If the energy has been used up, 0.75 days of Security Deposit will be deducted from your account;
- If part of the energy has been used, your Security Deposit will be deducted proportionally.
-
Liquidation Penalty: calculated as the amount of TRX delegated * 0.008%, with a minimum deposit of 20 TRX.
- If the rent order is returned on time, the Liquidation Penalty is fully refunded. If not returned before expiry, the order will be liquidated, and the liquidation penalty will be forfeited to community liquidators as a reward.
Energy Fee = Rental Amount * Unit Price * Rental Duration
Security Deposit = Rental Amount * Daily Price
Liquidation Penalty = Max (Equivalent TRX Delegated * 0.008%, 20 TRX)
After completing the rental transaction, you can manage your orders via the energy rental interface. Options include returning the rent, extending the rent order, viewing the actual energy received, and checking the remaining rental duration.
We recommend users customize their leasing plans based on their specific needs:
- For single transactions, we recommend returning the energy immediately after use. This avoids liquidation and helps save on occupation fees.
- For users with regular daily transactions, we suggest opting for a long-term hassle-free rental plan by renting energy for 30 days based on daily energy consumption. With the 24-hour full restoration rule, there is no need to rent excessive amounts of energy.
Cost Estimation¶
Snapshot, not live — for illustration only
The TRX, gas, and USD numbers in the tables below were captured during a specific past test transaction (see the Tronscan links in the rightmost column). They illustrate the shape of the cost comparison, but the absolute values move with the TRX/USD price, energy rental rate, and TRON network conditions. For a current quote, hit GET /strx/dashboard and the EnergyRental contract's _rentalRate(), or call the rent_energy MCP tool with --dry-run. Do not feed the literal "1.57" / "5.4689" numbers into a live pricing decision.
To provide a clearer understanding of the costs involved in transferring USDT by renting energy versus directly burning TRX, we present the following cost estimates through two examples:
Scenario 1: Renting 200k Energy for One Day to Transfer USDT
After renting 200k energy for one day, the USDT transfer is completed, and the rental is terminated immediately. The costs associated with this scenario are based on the prepayment and potential refund formulas previously outlined.
| Receiver holding USDT | Receiver without USDT | Calculation details | Txn example | |
|---|---|---|---|---|
| rent energy cost | - 65.363749 | - 65.363749 | 65.363749 for rent 200k energy | rentTxn |
| rent energy gas | - 2.153090 | - 2.153090 | 1.77009 burn for energy; 0.383 burn for bandwidth | rentTxn |
| transfer USDT gas | - 0.345000 | - 0.345000 | 0.345 for USDT bandwidth whatever holding USDT or not | noUsdtTxn; holdingUsdtTxn |
| return energy gas | - 0.378000 | - 0.378000 | return txn just burn bandwidth for gas | holdingUsdtReturnTxn; noUsdtTxn |
| refund | 60.413664 | 59.262775 | return TRX when end rent | |
| total energy rent cost | - 7.826175 | - 8.977064 | ||
| total cost (in USD) | - $1.57 | - $1.80 | 0.20USDpreTRX |
Scenario 2: Directly Burning TRX to Transfer USDT Without Energy
In this scenario, TRX is burned directly to facilitate the USDT transfer without renting any energy. The cost incurred here is solely dependent on the amount of TRX burned for the transaction.
| Receiver holding USDT | Receiver without USDT | Calculation details | Txn example | |
|---|---|---|---|---|
| burn TRX cost | - 27.344700 | - 55.064700 | 130,285 energy for notholding USDT; 64,285 energy for holding USDT; 345 bandwidth cost 0.345 TRX | transfer to a without USDT address; transfer to a holding USDT address |
| total cost (in USD) | - $5.4689 | - $11.0129 | 0.20USDpreTRX |
Comparison Insight
By comparing these two scenarios, it becomes evident that the cost of using rented energy for transaction cost is significantly lower than the cost of directly burning TRX. Additionally, the presence of USDT in the receiving address affects the computational load of the contract, which in turn impacts the overall transaction cost.
| Receiver holding USDT | Receiver without USDT | |
|---|---|---|
| rent energy cost | $1.57 | $1.80 |
| burn TRX cost | $5.4689 | $ 11.0129 |
| save | - $3.8989 | - $9.2129 |
Try it¶
Open the JustLend dApp Energy Rental page: https://app.justlend.org/energy?lang=en-US → connect wallet → set Rental Amount, Rental Duration, and Receiving Address.
Developer reference¶
- Rent resources:
rentResource(receiver, amount, resourceType)—amountis the delegated TRX in sun (not energy units); divide target energy byenergyStakePerTrxfrom the/strx/dashboardAPI. - Return rental (called by payer):
returnResource(receiver, amount, resourceType). - Return rental (called by receiver):
returnResourceByReceiver(renter, amount, resourceType). - Liquidate an undercollateralized rental:
liquidate(renter, receiver, resourceType). resourceType:0= bandwidth,1= energy.- Prepayment formula and refund math: Energy Rental prepay & refund.
- Live runnable examples: Energy→TRX conversion / rent / return — TronWeb.