<p>Run RPC <strong>listwallets</strong> and check if your account is listed.</p>
<p>If not, run <strong>loadwallet</strong> with only account name:</p>
<p>(assuming directory on disk: /home/user/.bitcoin/wallets/accountname/wallet.dat)</p>
<p>Command: <code>loadwallet accountname</code></p>

CC BY-SA 4.0
2021-07-16T08:12:25.213Z
2021-07-16T08:12:25.213Z
Akias
<p>I am running bitcoind after previously running bitcoin-qt. I made a wallet with bitcoin-qt (and encrypted it) and I would like to open it now with bitcoind. The folder that contains the wallet.dat file is in the data directory, but when I run either of the following:</p>

<pre><code>bitcoin-cli listwallets
bitcoin-cli getwalletinfo
</code></pre>

<p>it does not show my wallet. I have tried:</p>

<pre><code>bitcoind -wallet="directory with wallet.data file"
</code></pre>

<p>and still no luck, it just tried to rund bitcoind and says it is already running (not sure why, I am running bitcoind -daemon).</p>

<p>Any idea how I can import this wallet?</p>

CC BY-SA 4.0
2020-02-21T19:44:34.220Z
Have you tried `bitcoin-cli loadwallet <wallet name>` where `<wallet name>` is the name of your wallet (i.e. the name of the directory containing the wallet.dat file)?
Ava Chow
<bitcoin-core><bitcoind>
Opening a wallet with bitcoind
Steve Merriman
# Opening a wallet with bitcoind

(Asked by: username_0 on 2020-02-21)

I am running bitcoind after previously running bitcoin-qt. I made a wallet with bitcoin-qt (and encrypted it) and I would like to open it now with bitcoind. The folder that contains the wallet.dat file is in the data directory, but when I run either of the following:
bitcoin-cli listwallets
bitcoin-cli getwalletinfo

it does not show my wallet. I have tried:
bitcoind -wallet="directory with wallet.data file"

and still no luck, it just tried to rund bitcoind and says it is already running (not sure why, I am running bitcoind -daemon).
Any idea how I can import this wallet?

**Tags:** bitcoin-core, bitcoind

> **Comments:**
> **username_1**: Have you tried `bitcoin-cli loadwallet <wallet name>` where `<wallet name>` is the name of your wallet (i.e. the name of the directory containing the wallet.dat file)?  

---

## 1 answers

### Answer by username_2 on 2021-07-16. Score: 3

Run RPC **listwallets** and check if your account is listed.

If not, run **loadwallet** with only account name:

(assuming directory on disk: /home/user/.bitcoin/wallets/accountname/wallet.dat)

Command: `loadwallet accountname`


---

