I tried broadcasting some USDT transactions every day, and after a few days, I received OUT_OF_ENERGY messages for some transactions.
I do a few trades every day, sometimes I do about 30 trades.
First, I tried staking about 20k TRX to gain energy and bandwidth, but it was not enough.
When I trigger the transaction using a PHP script based on the Tron grid
documentation, it shows the fee limit
is 10, so I increase the fee limit
to 15 TRX (15M SUN) But TRX is still not used to submit the transaction. But if I provide them manually from TronLink wallet, everything is fine.
I don't know what I should do now.
I have used the transferTrc20
method on https://github.com/iexbase/tron-api to perform broadcast transactions on the TRX network.
I don't know if it is needed, but I found the solution this way. Function
triggerConstantContract
can return the energy consumption before the actual network call, but for some reason iexbase does not implement such logic. Therefore, I added my own function after thepublic function triggerConstantContract
inTransactionBuilder.php
which returns the complete result including energy informationSo you can do something like this
And responses to this