Bitcoin Forum

Other => Beginners & Help => Topic started by: xishon on March 13, 2017, 11:56:26 AM



Title: Bitcoin Core Multiple Wallets
Post by: xishon on March 13, 2017, 11:56:26 AM
Can we create multiple wallets with bitcoin core or we have only one wallet with multiple addresses?


Title: Re: Bitcoin Core Multiple Wallets
Post by: DannyHamilton on March 13, 2017, 01:28:41 PM
Bitcoin Core is not currently designed to easily maintain multiple wallets.

It can be done, but will require a bit of technical know-how and a LOT of care.

Bitcoin Core stores the entire wallet in a file named wallet.dat in the data directory on your filesystem.  If it can't find that file, then it creates a new one.

So, to create a new wallet, you can shut down Bitcion Core, move or rename the wallet.dat file, and then start Bitcoin Core back up again.

As long as you are VERY CAREFUL to keep track of each of your wallet.dat files and not to accidentally delete or overwrite them, then you can maintain as many as you like.


Title: Re: Bitcoin Core Multiple Wallets
Post by: mocacinno on March 13, 2017, 02:13:00 PM
Bitcoin Core is not currently designed to easily maintain multiple wallets.

It can be done, but will require a bit of technical know-how and a LOT of care.

Bitcoin Core stores the entire wallet in a file named wallet.dat in the data directory on your filesystem.  If it can't find that file, then it creates a new one.

So, to create a new wallet, you can shut down Bitcion Core, move or rename the wallet.dat file, and then start Bitcoin Core back up again.

As long as you are VERY CAREFUL to keep track of each of your wallet.dat files and not to accidentally delete or overwrite them, then you can maintain as many as you like.

I completely agree, i just wanted to add that you can just give each walletfile a different name, and then create aliasses to bitcoind or bitcoin-qt with the -wallet=walletname.dat option...
This way you don't have to juggle with filenames, and potentially lose funds ;)

For example, create 4 wallets by starting bitcoin core, stopping bitcoin core and then renaming the wallet.dat in your ~/.bitcoin folder (then repeating the process). For example, run this process 4 times to generate :
mywallet.dat
wifeswallet.dat
kidswallet.dat
businesswallet.dat

Then, in linux, open your .bashrc with vi, vim, nano,... and add following lines (something similar *MIGHT* exist in windows... don't really know):
alias mywallet="bitcoin-qt -wallet=~/.bitcoin/mywallet.dat"
alias wifeswallet="bitcoin-qt -wallet=~/.bitcoin/wifeswallet.dat"
alias kidswallet="bitcoin-qt -wallet=~/.bitcoin/kidswallet.dat"
alias businesswallet="bitcoin-qt -wallet=~/.bitcoin/businesswallet.dat"