andelf / tronpy

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

how i send trx with float #109

Closed Neverwin1337 closed 8 months ago

Neverwin1337 commented 1 year ago

when i try to send 1.5 2.5trx it return Contract validate error : No contract!

danielqba commented 9 months ago

do this to the amount: amount_to_send = int(amount*pow(10,6)) Be sure to let enough trx to fees (if needed)

MrNaif2018 commented 8 months ago

If it's possible, best is to pass strings/Decimals always