I was wondering if someone already has this thoughts or problems:

I generate bitcoin addresses and private keys by a script - to not depend on the bitcoin daemon and manage them in a database. By generating the bitcoin addresses, I generate one address and also select a wallet name by some criterias.


After a specific time i want to import the private keys to the given wallets ("WALLET NAMES") (to the wallets defined in the database before.)

I do this import with importprivkey without a rescan. I was wondering if it's possible to import the private keys to the wallets and to rescan one time and update all wallets with this one rescan to avoid for every wallet a explicit rescans each one and a half hour time.

Is it possible to import the private keys rescan=false and after this to run bitcoind with all wallets loaded and do the rescan which should be affecting all the wallets and update all of them in one rescan?

Has anyone thought about this before and has a solution for this?

1 Answer 1


You really should use the newer importmulti RPC.

It lets you import multiple private keys at once (and since 0.18, also supports BIP32 derivation etc), and will do the rescan (if desired) once for all keys simultaneously.

If you have accurate birthday information for your keys (a lower bound on the time when the corresponding addresses might be first used on the network), importmulti will even only rescan the relevant part of the chain.

  • thanks for your fast answer. a rescan with many loaded wallets / a update of all wallets with just one rescan is not possible or? before i did it with import key and rescan=false and the last import i did with rescan=true.. this was working for one wallet, but i still have 20 wallets to update per day.. that would mean 20x one and a half hour..
    – Jack
    Commented Apr 27, 2019 at 22:11
  • @Jack Yes, that works too for now, but importmulti is preferable for other reasons over importprivkey in any case. Commented Apr 28, 2019 at 1:52
  • Is there a script that will generate the JSON given a list of private keys?
    – user5652
    Commented Sep 10, 2020 at 22:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.