Author

Topic: Multiwallet usage (Read 84 times)

staff
Activity: 3374
Merit: 6530
Just writing some code
March 21, 2020, 01: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 21, 2020, 12:05:23 AM
#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: