Bitcoin Forum
May 21, 2024, 10:29:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Multiwallet usage  (Read 90 times)
acarli (OP)
Member
**
Offline Offline

Activity: 267
Merit: 77


View Profile WWW
March 21, 2020, 04: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?



achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6641


Just writing some code


View Profile WWW
March 21, 2020, 05:11:50 AM
Merited by ABCbits (1)
 #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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!