FAILED - OUT OF ENERGY solution to the problem

FAILED - OUT OF ENERGY> - solution to the problem of no energy for USDT transfer

Introduction

The TRON network has 2 main resources: Energy and Bandwidth.

  • Bandwidth - the resource required to transmit and record a transaction into a block

  • Energy - the resource required to call a smart contract

USDT is a smart contractarrow-up-right on the TRON network. When transferring USDT the transaction initiator writes data to the block (350 Bandwidth) and calls a smart contract (65–131k Energy).

If there is not enough bandwidth, the transaction will not be executed. It cannot be sent to the network.

If there is not enough energy but there is enough bandwidth, an attempt to call the smart contract will be made and an error will appear FAILED -OUT OF ENERGY>. It is worth noting that resources will be consumed even on a failed attempt.

Manually reproducing the FAILED -OUT OF ENERGY error

To trigger the error FAILED -OUT OF ENERGY> we created a wallet in TronLink and funded it with 6 TRX and 10 USDT. The wallet has 0 available energy and 600 bandwidth

A USDT transaction requires at least 65K energy, and if there is not enough energy TRX will be burned to obtain it. After the adoption of Tron Proposal 101 (TIP-789) the energy cost decreased from 210 to 100 sun and now to obtain 65,000 energy you need to burn 6.5 TRX.

Since the wallet has no energy and the balance is 6 TRX, executing the USDT transaction will yield only 60,000 energy, which will not be enough. As a result we get the error FAILED -OUT OF ENERGY>

Step-by-step reproduction of the error:

  1. In the TronLink wallet click Send

  2. Paste the recipient address (they have USDT, so the transaction should require 65,000 energy)

  3. Send 1 USDT

  4. A transaction confirmation window appears

  5. Scroll down and you will see that TronLink highlights a resource shortage error. Nevertheless it allows signing a transaction that is guaranteed not to be executed.

circle-exclamation
  1. If you go to Total Consumption you can see how many and which resources are required for the transaction to succeed. In our case it is 64K energy and 356 bandwidth

  2. Ignoring the warning we try to sign the transaction

  3. TronLink displays a final warning about insufficient resources. We ignore it and click Confirm

  4. Result - Transaction Failed

Let's go to tronscan.org and view the results:

  1. Result: FAILED -OUT OF ENERGY>

  2. Note the resources used and the fees. 345 units of bandwidth and 60,000 energy were spent, due to burning 6 TRX.

Reproducing the resource shortage error is a clear example of which parameters to pay attention to when working with smart contracts on the TRON network

Solving the FAILED -OUT OF ENERGY problem using FeeSaver energy

To prevent the error from occurring FAILED -OUT OF ENERGY>, the address must have a sufficient amount of resources to execute transactions.

Purchase Energy - if you need energy for a single transaction

Smart mode - if you make frequent transfers from one address during the day

API Purchases - if you want to automate personal purchases or purchases for business

You can buy energy and bandwidth via the Telegram bot https://t.me/FeeSaver_botarrow-up-right

To learn how to use the FeeSaver Telegram bot study this user guide - @FeeSaver_bot


Any questions left? Contact our support service t.me/feesaver_supportarrow-up-right

Last updated