Post
Topic
Board Development & Technical Discussion
Can't import keys - unexpected token 'importprivkey'
by
webchris
on 23/12/2017, 04:22:12 UTC
I have exported/dumped private keys from multiple wallets and I'm trying to import them into one wallet. There are too many to do them one at a time. I am attempting to import them using a batch file but it seems "importprivkey" is not part of the bitcoind daemon anymore, or I am missing something.

I am running Bitcoin Core 0.15.1.

My batch file looks like this:

Code:
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey MYPRIVATEKEYHERE label-1 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey MYPRIVATEKEYHERE label-2 false

The error I get is:
Error: Command line contains unexpected token 'importprivkey', see bitcoind -h for a list of options.


When I try bitcoind -h I see no importprivkey option anywhere.

Any help would be greatly appreciated!