bitcoin node startup daemon with created wallet

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.

JEAGONG JEONG

Posted 2019-08-23T00:53:04.233

Reputation: 3

Answers

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

Andrew Chow

Posted 2019-08-23T00:53:04.233

Reputation: 40 910

Is there any way I can load it when the node starts?JEAGONG JEONG 2019-08-23T07:25:59.907

You add the bitcoin.conf line I mentioned in my answer.Andrew Chow 2019-08-23T14:50:32.127