Run multiple wallets on the same system

2

1

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?

Dor Bar

Posted 2018-11-22T12:04:14.243

Reputation: 81

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 2018-11-22T12:54:29.273

1Thanks @Jannes! Following your answer, I researched a bit and wrote an official answer to that question.Dor Bar 2018-11-22T13:15:11.120

Answers

3

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>

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

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

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

Dor Bar

Posted 2018-11-22T12:04:14.243

Reputation: 81