Is it possible to pack a few transfers of EOS token to different accounts inside of single transaction? I know it's possible to pack multiple arbitrary actions inside one tx, but what about EOS token transfers specifically?

  • What will be your reason for batch transactions? For bitcoin, I understand using batch transactions can save on transaction fees, but since there is no cost to transfer tokens in EOS, you can simply send tokens freely in multiple transactions. Unless you need these transfer actions to be atomic where one transfer fails all fails. – Jeff Zheng Sep 14 at 9:17

You need to make different token contract for that which accepts more than one receivers and only one sender

For example current transfer function is

                        transfer(account_name from,
                        account_name to,
                        asset        quantity,
                        string       memo ) 

You need to modify that function like

                    transfer(account_name from,
                    account_name to1,
                    account_name to2,
                    .
                    .
                    .
                    account_name ton,
                    asset        quantity,
                    string       memo )

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.