andelf / tronpy

TRON Python Client Library.
MIT License
212 stars 96 forks source link

when send trc20 always say ”Not enough energy“ no matter how much fee_limit set #58

Closed qqq-1123 closed 1 year ago

qqq-1123 commented 2 years ago

txn = ( contract.functions.transfer(to, amounts) .with_owner(address) .fee_limit(5_000_000) .build() .sign(key1) .inspect() .broadcast() )

see https://tronscan.org/#/transaction/a1abdd2dd4b319abbe690225f237eaa309eb07522574b7657c72e7a8be0f3027

i see it always extra 345 Bandwidth but how to deal it

MrNaif2018 commented 1 year ago

You have probably solved the issue, but out of energy error may as well occur when you don't have enough balance to cover the energy. fee limit just limits it. Also bandwidth is present in any transaction, it is transaction size, part of the fee calculation