Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jamesg on September 28, 2012, 10:56:26 PM



Title: Utility to combine multiple wallet.dat files?
Post by: jamesg on September 28, 2012, 10:56:26 PM
Hello fellow bitcoiners,

Is there a utility available to combine multiple wallet.dat files into one? I've kept a couple different wallets up till now but would like to combine them into one.

Thanks,
gigavps


Title: Re: Utility to combine multiple wallet.dat files?
Post by: herzmeister on September 29, 2012, 12:12:24 AM
https://en.bitcoin.it/wiki/Pywallet
https://bitcointalk.org/index.php?topic=34028.0

 8)


Title: Re: Utility to combine multiple wallet.dat files?
Post by: Dabs on September 29, 2012, 09:16:20 AM
You could sequentially load each wallet and send all the coins to a brand new wallet, consolidating all your funds.


Title: Re: Utility to combine multiple wallet.dat files?
Post by: teknohog on September 29, 2012, 08:19:19 PM
Export the private keys of each wallet and import them all into the new one.

This is probably what the Pywallet reply is about, but there are other ways. Bitcoind itself has the "dumpprivkey" and "importprivkey" commands. I use my Python script (https://github.com/teknohog/bittools) to do this.

Exporting and importing keys has some definite advantages compared to sending coins the usual way:

  • No transaction fees
  • Keep receiving addresses alive


Title: Re: Utility to combine multiple wallet.dat files?
Post by: jamesg on September 30, 2012, 02:02:41 AM
  • Keep receiving addresses alive

This is really the most important thing to me. I'll definitely be diving into this next week to get the wallet.dat files consolidated.