0

When I restart the Bitcoin node, I would like to load the wallet I created in the "wallets" subdirectory.

  1. bitcoin-cli createwallet "1"
  2. bitcoin-cli listwallets -> result : "", "1"
  3. bitcoin-cli -testnet stop
  4. bitcoind -testnet -daemon
  5. bitcoin-cli listwallets -> result : ""

thanks.

1 Answer 1

0

You load a wallet using the loadwallet command.

To load the wallet named 1, do

bitcoin-cli loadwallet "1"

In order to have that specific wallet always loaded, add to your bitcoin.conf file:

wallet=1
2
  • Is there any way I can load it when the node starts? Commented Aug 23, 2019 at 7:25
  • You add the bitcoin.conf line I mentioned in my answer.
    – Ava Chow
    Commented Aug 23, 2019 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.