Author

Topic: Multiwallet usage (Read 90 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
March 21, 2020, 12:11:50 AM
#2
The "base" is called the default wallet and its name is the empty string (""). When multiple wallets are loaded, to use the default wallet, you do
Code:
bitcoin-cli -rpcwallet= CMD
Having nothing after the equals sign indicates the empty string.
member
Activity: 267
Merit: 77
March 20, 2020, 11:05:23 PM
#1
I just am starting to use this multi-wallet feature. Theoretically, it looks like it will not be that hard. Whenever there's a transaction, I just pre-pend the "-rpcwallet=wallet1.dat" in the command. ie.
Code:
bitcoin-cli -rpcwallet=wallet1.dat COMMAND

Let's say I add another wallet in another subdirectory. If I do not add the  "-rpcwallet=wallet1.dat" does it default to the base wallet.dat?


Jump to: