Bitcoin Forum
November 02, 2024, 11:38:47 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Importing multiple private keys into Bitcoin Core?  (Read 3293 times)
Snatdard usre (OP)
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
December 08, 2014, 06:55:57 PM
 #1

Hello,
is there any method how to import multiple(~10000) private keys into Bitcoin Core? Currently, if I do it manually(open console, type "importprivkey <key>") it takes 2 minutes to import, which is totally unacceptable. Or are there any other(non "light") BTC wallet software, which allow to do it? Thanks.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3472
Merit: 4801



View Profile
December 08, 2014, 08:03:16 PM
 #2

Hello,
is there any method how to import multiple(~10000) private keys into Bitcoin Core? Currently, if I do it manually(open console, type "importprivkey <key>") it takes 2 minutes to import, which is totally unacceptable. Or are there any other(non "light") BTC wallet software, which allow to do it? Thanks.

I can't imagine why you would need to import 10,000+ private keys into Bitcoin Core.

If you really want to, then I suppose you can use the rescan=false option on the importprivkey command.  This should prevent it from scanning the entire blockchain when it imports the private key and will therefore speed up the import.

"light" wallet simply means that it doesn't store the entire blockchain. If you are willing to use a "light" wallet, then private keys should import quite quickly since there won't be a need to scan the entire blockchain.
hexafraction
Sr. Member
****
Offline Offline

Activity: 392
Merit: 268

Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ


View Profile
December 08, 2014, 10:19:22 PM
 #3

Hello,
is there any method how to import multiple(~10000) private keys into Bitcoin Core? Currently, if I do it manually(open console, type "importprivkey <key>") it takes 2 minutes to import, which is totally unacceptable. Or are there any other(non "light") BTC wallet software, which allow to do it? Thanks.

I can't imagine why you would need to import 10,000+ private keys into Bitcoin Core.

If you really want to, then I suppose you can use the rescan=false option on the importprivkey command.  This should prevent it from scanning the entire blockchain when it imports the private key and will therefore speed up the import.

"light" wallet simply means that it doesn't store the entire blockchain. If you are willing to use a "light" wallet, then private keys should import quite quickly since there won't be a need to scan the entire blockchain.

Wouldn't importing a private key into such a "light" wallet incur the time to fetch the blocks containing related transactions for those keys, from the network? Or am I mistaken in some way?

I have recently become active again after a long period of inactivity. Cryptographic proof that my account has not been compromised is available.
Snatdard usre (OP)
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
December 09, 2014, 10:25:35 AM
 #4

Many thanks for replies, I think "rescan=false option" was what I was looking for. I need this because my bitcoins are stuck in Electrum(damn it Smiley ), so the only way I can think of  - export private keys(10000) and import them into non light software.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
December 11, 2014, 10:59:35 AM
 #5

If you have some text-edit finesse, you can turn a list of keys into a list of import commands. From another thread:

Code:
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L4mP3joYEhSv1ofdsWbz8xEmqCmYK9vGyi8mJmWWbh79Xx2NsS1M addr-1DfyaDvr-1 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey Ky2EGjWLhfKv1sWnPcuN4SHF2iALj6SfK7hoLWKx5T4zMqXg7aT9 addr-1DfyaDvr-2 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey KzrZ4DULdVWFqpF48pdJicFJfX5dqrhxBkqDnT4HRkCswdFy3Eo4 addr-1DfyaDvr-3 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L2ELWXewr1PQnMwFDpfobHFqspyM6g1noM4uzkCMgoSZTSf3sQJF addr-1DfyaDvr-4 false
Just make the final line "true" to reindex.
Snatdard usre (OP)
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
December 11, 2014, 11:01:36 AM
 #6

Thanks deepceleron, will try this, currently waiting for Bitcoin Core to sync )
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!