Closed qqq-1123 closed 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
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