Author

Topic: How do I merge my wallets? (Read 10666 times)

hero member
Activity: 737
Merit: 500
March 27, 2012, 11:44:24 AM
#11
I just did this and didn't get pywallet to work with an encrypted wallet, so I ended up using the import/export private key function of the official client:

  • Take the one of your existing wallets that you want to become your main wallet.
  • Create a new address from that wallet.  I'll refer to this as address 1ABC
  • Go to your old wallet.  Send the entire balance of this wallet to the 1ABC address.  This ensures that any coins attached to invisible "change" addresses make it to your new main wallet.
  • Use the JSON-RPC API dumpprivkey (using the bitcoind executable from the command line to talk to your running bitcoin) to export all of the addresses from your old wallet that you think you might still get some payment on in the future
  • use the JSON-RPC API importprivkey on your new wallet to import all of the keys from the step above

Your new wallet now has a) all of the publicly disclosed addresses from your old wallet and b) all of the BTC that may have been living in "change" addresses.

so this feature is in a public release? that means i could at least now use PHP to do a bulk import in some kind of loop... finally, hooray Cheesy

in what version did this feature first appear?

0.5.x I think.  I don't remember exactly.
hero member
Activity: 737
Merit: 500
March 27, 2012, 08:34:50 AM
#10
I just did this and didn't get pywallet to work with an encrypted wallet, so I ended up using the import/export private key function of the official client:

  • Take the one of your existing wallets that you want to become your main wallet.
  • Create a new address from that wallet.  I'll refer to this as address 1ABC
  • Go to your old wallet.  Send the entire balance of this wallet to the 1ABC address.  This ensures that any coins attached to invisible "change" addresses make it to your new main wallet.
  • Use the JSON-RPC API dumpprivkey (using the bitcoind executable from the command line to talk to your running bitcoin) to export all of the addresses from your old wallet that you think you might still get some payment on in the future
  • use the JSON-RPC API importprivkey on your new wallet to import all of the keys from the step above

Your new wallet now has a) all of the publicly disclosed addresses from your old wallet and b) all of the BTC that may have been living in "change" addresses.
donator
Activity: 1218
Merit: 1015
March 27, 2012, 02:13:27 AM
#9
make a copy of wallet.dat?

that way you will have the same wallet on your lunix windows  or wtv other PC

I'm i misinterpreting the question?
Yep. Re-read the thread title.

Armory currently supports importing Satoshi wallets and allows you to use multiple wallets, fwiw. Outside of that, it has a ridiculous number of features, though it currently consumes >2gb RAM. https://en.bitcoin.it/wiki/Armory
legendary
Activity: 1904
Merit: 1037
Trusted Bitcoiner
March 27, 2012, 02:02:48 AM
#8
make a copy of wallet.dat?

that way you will have the same wallet on your lunix windows  or wtv other PC

I'm i misinterpreting the question?
sr. member
Activity: 406
Merit: 250
March 27, 2012, 12:09:51 AM
#7
counting down the days to bulk key import in the public release...  Undecided


Nearly 2 years since this thread and it's not a feature :/
hero member
Activity: 812
Merit: 1000
November 07, 2011, 10:07:24 PM
#6
I believe you can do it with pywallet:
https://github.com/joric/pywallet

I've used it to import private keys into an existing wallet.

You can use it to dump the keys from the first wallet, then import the dumped keys into the second wallet. 

It doesn't appear to have been updated to work with 0.4.0 encrypted wallets yet, so use with caution.



i installed pywallet and it's pretty good at what it does.

but the fundamental part it lacks is importing multiple keys... i mean i kind of would have expected it to be able to read it's own 'dump' output, but no, you have to do them one at a time which unfortunately renders the feature useless to me in all practicality.
newbie
Activity: 28
Merit: 0
November 07, 2011, 08:42:11 PM
#5
I believe you can do it with pywallet:
https://github.com/joric/pywallet

I've used it to import private keys into an existing wallet.

You can use it to dump the keys from the first wallet, then import the dumped keys into the second wallet. 

It doesn't appear to have been updated to work with 0.4.0 encrypted wallets yet, so use with caution.

hero member
Activity: 812
Merit: 1000
November 06, 2011, 09:48:29 AM
#4
This is currently not possible with the standard client.

I expect soon there will be tools that low importing and exporting of wallets.
Then you will be able to do what you want.


so... it's 3.5 months later, is there any practical way to merge wallets?
preferably for windows, but i'd settle for something i can run in linux if need be.

or is such functionality still in the realm of coders-only?
sr. member
Activity: 294
Merit: 252
Firstbits: 1duzy
July 17, 2010, 04:42:04 AM
#3
This is currently not possible with the standard client.

I expect soon there will be tools that low importing and exporting of wallets.
Then you will be able to do what you want.
full member
Activity: 210
Merit: 100
July 17, 2010, 01:23:57 AM
#2
Well, the only possible way now is to send all your money from your other accounts to the primary one and never use those after  Smiley
member
Activity: 70
Merit: 11
July 16, 2010, 10:39:52 PM
#1
Between Windows, Linux (on same PC), and my laptop?

I don't want to lose payments cause I dropped a few addresses Smiley
Jump to: