I tried to broadcast some USDT transactions every day and after a few days, I got the OUT_OF_ENERGY message on some transactions.
every day I do some transactions and some days I do about 30 transactions.
first I tried to Stake about 20k TRX for energy and bandwidth but it wasn't enough.
when I trigger transactions using my PHP script based on Tron grid
documentation it shows a fee limit
of 10 so I increased the fee limit
to 15 TRX ( 15M SUN ) but still didn't use TRX for submitting transactions. but everything is fine if I offer them manually from the TronLink wallet.
I don't know what I should do now.
I already use the transferTrc20
method on https://github.com/iexbase/tron-api for broadcast transactions on the TRX network.
I don't know if that is needed but I found solution this way. Function
triggerConstantContract
can return energy consume before real network call but iexbase by some reason didn't implement such logic. So I added my own function just afterpublic function triggerConstantContract
inTransactionBuilder.php
which return full result which containing energy infothus you can do something like that
and response of that