5

I've heard people referring to 'sweep inputs' and I'm not exactly sure what they are. I'm assuming sweeping has something to do with moving Monero to another address, but I haven't been able to find a clear explanation.

Are there fees involved for sweeping, and how does sweeping differ to simply sending a regular transaction?

1 Answer 1

3

Your balance is made up of outputs of various amounts which you've received in the past. Every time you send, some of those get combined together until you reach some amount, which is then sent to the destination, and some change returned to your wallet.

Think of outputs as bills: you received a bill of 40 and 100 in the past, and now you want to pay something worth 120. Your wallet 'burns' the 100+40 bills, creates new bills of 120 and 20, sends the 120 to your recipient and returns the 20 to yourself and you're left with the bill of 20, plus whatever else you already had in the wallet. In Monero, these 'bills' can now be created with any amount (pre-RCT, they had to be round numbers like 10, 1, 0.1, 0.01 ...).

Sweep takes all of your outputs and sends the balance to an address of your choosing. You'd want to use this to move entire balance of one wallet to another, or to clean up your wallet and combine everything into one big output (by sweeping to the same wallet).

There are normal transaction fees (per kB) applied. Of course, each additional output increases the size, and with it the fee. Another reason why it's convenient to have just a few big 'bills' instead of lots of small ones in your wallet.

2
  • So if my understanding is correct, sweeping allows you to clean out a wallet completely including any transaction fees required for that process. Whereas if you tried to do it manually, you'd need to guess the amount to send and hope that your balance came close to zero after accounting for the transaction fee?
    – ryan.max
    Commented Jan 30, 2017 at 21:53
  • 1
    That's right. The command is there for convenience.
    – JollyMort
    Commented Jan 30, 2017 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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