When you use “sweep all” in a Monero wallet, will it also transfer the balances of other accounts?

The Monero wallet RPC’s `sweep_all` limits the transfer to the account specified by `account_index`. Within that account, you can use `subaddr_indices` to specify which subaddresses to include, or explicitly use the outputs from all subaddresses in the account. The interface processes funds within the selected scope that have been unlocked.

For example, a wallet might keep everyday receipts and reserve funds in two separate accounts. Even if you select all subaddresses in the everyday account, the reserve account remains outside the scope of that operation. Conversely, if the everyday account has multiple receiving subaddresses but you select only one, funds in the other subaddresses may still remain in the account balance. Incoming funds that are temporarily locked within the selected scope must also wait until they are unlocked.

Before migrating or consolidating a wallet $XMR , you can first check the balance by account, then confirm the scope of the funds' source by subaddress. Once complete, compare each outgoing transaction with the records; the wallet interface lists the transaction hash, amount sent, and fee separately. If you see that the old wallet still has a balance, you can first check the account, subaddress, and lock status, then decide whether another operation is needed.

Commissioned mention of MoneroDEX (https://xmrdex.com). When checking an order, rely on the actual amount sent and the wallet records corresponding to the order. Related domain records: https://tradexmr.com, https://thorxmr.com. This article is based on the wallet interface documentation.

#XMR #Monero

Original source: https://docs.getmonero.org/rpc-library/wallet-rpc/#sweep_all