Hi guys,
I currently have multiple different address in one wallet, each with a small amount of BTC.
I want to combine all of these into a single address, without having to do multiple transactions (not worried about fees, just the time it will take).
Is there a debug command like 'sendmany' which will allow me to consolidate all the BTC across these addresses into one address?
Thanks
All addresses were generated by the same wallet? Since you're mentioning debug commands, I assume it was a bitcoin core wallet?
In this case, it's a pretty easy task, just generate a new address , then use the sendtoadress command, and use the 5th parameter: subtractfeefromamount. If set to true, the fee will be subtracted from the amount.
This will allow you to just send the total value of all unspent outputs to the new address without having to look up those unspent outputs, calculate the fee, create a raw tx, sign a raw tx,... All these calculations will be executed by the wallet software.
In case you only want to "combine" certain unspent outputs, you can still create a raw tx manually and sign it..
PS: I answered your question since a lot of misinformation was given and your question looked legit, but next time open a new thread instead of posting in a dead one...