Post
Topic
Board Bitcoin Technical Support
Merits 2 from 2 users
Topic OP
Working with multiple wallets in Bitcoin Core
by
kbdwarrior
on 03/12/2020, 21:36:23 UTC
⭐ Merited by ETFbitcoin (1) ,vapourminer (1)
Hi, I'm trying to work with multiple wallets with Bitcoin Core on regtest, for learning purposes.

I created 3 wallets like

Code:
bitcoin-cli -regtest createwallet "wallet1"
bitcoin-cli -regtest createwallet "wallet2"
bitcoin-cli -regtest createwallet "wallet3"

Now I want to unload/load wallets, but

Code:
bitcoin-cli -regtest loadwallet "wallet1"
gives me an error message:

Code:
error code: -4
error message:
Wallet file verification failed: Error loading wallet wallet1. Duplicate -wallet filename specified.

Depending on the path I give for "wallet1" I get various different errors, but nothing loads the wallet.

I understand that I can specify the wallet via the
Code:
-rpcwallet="walletname"
option. But for what purpose are the loadwallet/unloadwallet commands? How are they meant to be used?

Thanks.