I am trying to batch transactions to transfer assets.
I want to batch transactions, so execute only one transaction to transfer multiple assets.
Let’s say, I have to transfer multiple assets; 1 ICP, 15 ckUSDC and 100 BOOP.
All transfers have to be occured by only one transaction with batching.
so is it possible on IC ?
If anyone knows that, please teach me and support some docs
To answer your question: No, it is not possible to do transfers of multiple assets at the same time. ICP uses an async programming model and since these assets are distributed over separate actors, there is no way to batch transactions of different assets
A typical solution in ICP-land is to use something like an escrow canister that holds the funds. It can in a single transaction re-allocate who owns how many of which token. Afterwards, it can send the funds one by one to the new owners
With these it will be possible to do batch operations on one actor, meaning with multiple transactions of the same token. Also, these standards are still WIP and until they are actually implemented will take a while too
Thank you so much.
My purpose is to implement that user can transfer multiple assets with only one transaction.
As you said , it’s impossible.
could you please let me know any solution ?