<h1>Using multiple wallets on one "bitcoind" process</h1>

<h3>Follow this steps:</h3>

<ol>
<li>Run the bitcoind process.</li>
<li>Create a wallet for each of the clients using:</li>
</ol>

<p><code>bitcoin-cli.exe createwallet &lt;client_uniq_id&gt;</code></p>

<ol start="3">
<li>When you want to perform any action on any wallet simply use:</li>
</ol>

<p><code>bitcoin-cli.exe -rpcwallet=&lt;client_uniq_id&gt; &lt;your_rpc_method&gt;</code></p>

<ol start="4">
<li>Use <code>""</code> for <code>&lt;client_uniq_id&gt;</code> in order to refer to the default wallet, created by the bitcoind.</li>
</ol>

CC BY-SA 4.0
2020-09-28T15:52:58.340Z
your solution do not specify if running two instances will utilize two copies of the blockchain or use the same ? Also, will this procedure run two wallets simultaneously or only one instance can run at any given moment ? Thanks
Fred Cailloux
CC BY-SA 4.0
2022-05-24T13:58:50.673Z
How should I use it with json-rpc? There is no wallet_name parameter in send not list_transactions. So is it possible to run 2 wallets concurrently? So I send coins from one wallet and receive it in another but having just one blockchain and not doing service restart or wallet unload/load between?
Pavel Niedoba
CC BY-SA 4.0
2018-11-22T13:11:45.373Z
2018-11-26T07:25:18.567Z
2018-11-26T07:25:18.567Z
Dor Bar
<h2>Setup:</h2>

<ul>
<li>10 clients. </li>
<li>Each client has his own wallet on my secured system.</li>
<li>An API service manages these wallets.</li>
</ul>

<h2>Leading Questions:</h2>

<ul>
<li>Each wallet should run as a separate process of "bitcoind"?</li>
<li>If so, each "bitcoind" can use the same blockchain files?</li>
<li>There is a best practice of running multiple wallets on the same system?</li>
</ul>

CC BY-SA 4.0
2018-11-22T12:54:29.273Z
0.17 (and I think 0.16) has support for multiple wallets in one bitcoind. Even runtime adding/removing/switching wallets. You can manage those using RPC commands. Multiple bitcoind instances can not share the same blockchain files. No experience with this, so can't comment on best practices.
Jannes
CC BY-SA 4.0
2018-11-22T13:15:11.120Z
Thanks @Jannes! Following your answer, I researched a bit and wrote an official answer to that question.
Dor Bar
<bitcoind>
Run multiple wallets on the same system
Dor Bar
# Run multiple wallets on the same system

(Asked by: username_0 on 2018-11-22)

## Setup:

* 10 clients.
* Each client has his own wallet on my secured system.
* An API service manages these wallets.

## Leading Questions:

* Each wallet should run as a separate process of "bitcoind"?
* If so, each "bitcoind" can use the same blockchain files?
* There is a best practice of running multiple wallets on the same system?

**Tags:** bitcoind

> **Comments:**
> **username_1**: 0.17 (and I think 0.16) has support for multiple wallets in one bitcoind. Even runtime adding/removing/switching wallets. You can manage those using RPC commands. Multiple bitcoind instances can not share the same blockchain files. No experience with this, so can't comment on best practices.  
> **username_0**: Thanks @username_1! Following your answer, I researched a bit and wrote an official answer to that question.  

---

## 1 answers

### Answer by username_0 on 2018-11-22. Score: 7 | Accepted answer

# Using multiple wallets on one "bitcoind" process

### Follow this steps:

1. Run the bitcoind process.
2. Create a wallet for each of the clients using:

`bitcoin-cli.exe createwallet <client_uniq_id>`

3. When you want to perform any action on any wallet simply use:

`bitcoin-cli.exe -rpcwallet=<client_uniq_id> <your_rpc_method>`

4. Use `""` for `<client_uniq_id>` in order to refer to the default wallet, created by the bitcoind.

> **Comments:**
> **username_2**: your solution do not specify if running two instances will utilize two copies of the blockchain or use the same ? Also, will this procedure run two wallets simultaneously or only one instance can run at any given moment ? Thanks  
> **username_3**: How should I use it with json-rpc? There is no wallet_name parameter in send not list_transactions. So is it possible to run 2 wallets concurrently? So I send coins from one wallet and receive it in another but having just one blockchain and not doing service restart or wallet unload/load between?  

---

