Bitcoin Forum
May 21, 2024, 08:52:15 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Importing a list of private keys  (Read 1137 times)
The Ferox (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
July 27, 2014, 09:17:17 PM
 #1

I found on another thread a reference to a RPC command "importwallet" although i can find no documentation about it anywhere so i am looking for a different approach.

How would a person import a list of private keys into Bitcoin QT through either debug window or Bitcoind? Not a single address but a long list of private keys.
bitsta
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500


r00t-dev


View Profile
July 27, 2014, 10:37:57 PM
 #2

I found on another thread a reference to a RPC command "importwallet" although i can find no documentation about it anywhere so i am looking for a different approach.

How would a person import a list of private keys into Bitcoin QT through either debug window or Bitcoind? Not a single address but a long list of private keys.

write a script (python, perl, bash) and use a loop which executes the rpc-command "importprivkey" on every privatekey inside your list (list could be realized with loading an external file[containing the privkeys] into an array). if you need any support, let me know.

regards
The Ferox (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
July 27, 2014, 10:39:55 PM
 #3

I found on another thread a reference to a RPC command "importwallet" although i can find no documentation about it anywhere so i am looking for a different approach.

How would a person import a list of private keys into Bitcoin QT through either debug window or Bitcoind? Not a single address but a long list of private keys.

write a script (python, perl, bash) and use a loop which executes the rpc-command "importprivkey" on every privatekey inside your list. if you need any support, let me know.

regards


Bista that would be awesome, could you give me an example? like a .bat file or something with just a few spoofed keys that i could use as a template then i can just copy and paste the few hundred addresses i have left to import.
btchris
Hero Member
*****
Offline Offline

Activity: 672
Merit: 504

a.k.a. gurnec on GitHub


View Profile WWW
July 27, 2014, 10:58:02 PM
 #4

I found on another thread a reference to a RPC command "importwallet" although i can find no documentation about it anywhere so i am looking for a different approach.

How would a person import a list of private keys into Bitcoin QT through either debug window or Bitcoind? Not a single address but a long list of private keys.

Yeah it's not documented here where most of the other RPC commands are, but I thought I had already mostly answered you in the original thread over here. The only "official documentation" as far as I know is in the actual source code.

Or of course you could use one of the better documented APIs as bitsta recommended.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4186
Merit: 8421



View Profile WWW
July 28, 2014, 04:04:03 AM
 #5

The documentation is the integrated online help. use the help rpc on any rpc.
btchris
Hero Member
*****
Offline Offline

Activity: 672
Merit: 504

a.k.a. gurnec on GitHub


View Profile WWW
July 28, 2014, 11:53:35 AM
 #6

The documentation is the integrated online help. use the help rpc on any rpc.

Yup, that's how I came across it. It's a very helpful addition. It's just that the import format has to be reversed engineered from the dumpwallet file / the source code if you want to build your own file.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4186
Merit: 8421



View Profile WWW
July 28, 2014, 02:34:39 PM
 #7

Yup, that's how I came across it. It's a very helpful addition. It's just that the import format has to be reversed engineered from the dumpwallet file / the source code if you want to build your own file.
Ah, didn't realize thats what the question was. It's the multibit format.
ethought
Legendary
*
Offline Offline

Activity: 1316
Merit: 1000



View Profile
July 28, 2014, 07:30:13 PM
 #8

I found on another thread a reference to a RPC command "importwallet" although i can find no documentation about it anywhere so i am looking for a different approach.

How would a person import a list of private keys into Bitcoin QT through either debug window or Bitcoind? Not a single address but a long list of private keys.

I wrote a small script to restore altcoin wallets after a fork.

Essentially all it does is dump private keys and then import them in a new wallet.

https://github.com/ethought/PrivateKeyMover
Kprawn
Legendary
*
Offline Offline

Activity: 1904
Merit: 1073


View Profile
July 29, 2014, 05:58:46 PM
 #9

Thanks, I can also use this. Just wondering, what is available to read and convert QR codes in Windows to text files?

Drop me a PM pls.  Wink

THE FIRST DECENTRALIZED & PLAYER-OWNED CASINO
.EARNBET..EARN BITCOIN: DIVIDENDS
FOR-LIFETIME & MUCH MORE.
. BET WITH: BTCETHEOSLTCBCHWAXXRPBNB
.JOIN US: GITLABTWITTERTELEGRAM
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!