xssnick / tonutils-go

TON SDK Library in pure Golang for interacting with The Open Network ecosystem using native protocols, such as ADNL, RLDP and etc.
Apache License 2.0
400 stars 80 forks source link

How to transfer jettons from subwallets using highload wallet? #199

Open gtors opened 1 month ago

gtors commented 1 month ago

How to pack multiple Jetton transfers into single external message using a highload wallet? Didn't find any example

To be more clear, I'm trying to implement this one: https://docs.ton.org/develop/dapps/asset-processing/jettons#withdrawals-made-from-deposits

Thanks in advance.

xssnick commented 1 month ago

Hi, see jetton transfer example, line where msg is generated, and see highload wallet example. So you just need to build many msg from jetton transfer example and add them to single slice, then pass to SendManyWaitTxHash, but keep in mind that maximum external message size is 64 kb, so try to not add too much transfers (hundreds) into single tx.

gtors commented 1 month ago

Thanks, I will try it

p.s.: the library is awesome 👍