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


bitcoin-cli createwallet "1"
bitcoin-cli listwallets -> result : "", "1"
bitcoin-cli -testnet stop
bitcoind -testnet -daemon
bitcoin-cli listwallets -> result : ""


thanks.
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