Hey guys! Hot to properly send full balance from a given wallet? How to calc fee in advance? I want the final balance after activation to be zero.
When testing and trying to send full balance (1 TON for example) I got some weird balance drainage, 50+ internal transactions and no incoming transaction.
I’m using V4R2 and xssnick/tonutils-go library is this is important
Dec 18, 2022, 1:42 PM
Send message with mode 128 ("carry all the remaining balance").
If you wish also to destroy contract, use mode 160 (+32 = "destroy contract if balance is zero").
If you wish also to destroy contract, use mode 160 (+32 = "destroy contract if balance is zero").
Dec 18, 2022, 1:49 PM
Thanks a lot! Will try now.
Found this exact message at the js example now. Should look better next time I guess
https://github.com/toncenter/examples/blob/main/deposits-multi-wallet.js
Found this exact message at the js example now. Should look better next time I guess
https://github.com/toncenter/examples/blob/main/deposits-multi-wallet.js
Dec 18, 2022, 2:02 PM