Say I have 10 wallets and want to send their content to a master wallet and then remove trustlines on these wallets, what would be the easiest way to do it? Thanks!
Transactions can contain 100 operations in them, and those operations can have different source accounts. Create a transaction with multiple operations with each account as the source of that operation.
You’ll need to remove trustlines and data entries before the merge account operation, so includes those operations earlier.
Finally, you’ll have to satisfy the signing thresholds for each account included in the transaction so unless they have a shared signer then you’ll probably need each account to sign the transaction before it’s submitted.