Bitcoin Forum
November 09, 2024, 02:20:36 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I import private keys using PyWallet?  (Read 845 times)
kodan50 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
February 28, 2014, 04:08:13 AM
 #1

I am using Windows XP and PyWallet, though I don't remember which fork I am using. I am able to successfully dump the key I want to use, I am not sure how to import the key into the new wallet. PyWallet keeps telling me I am missing a critical command line option, but it refuses to tell me what I am missing. I tried to mirror some of the example command lines from the website, but they are either not exactly what I need (and being they are Linux doesn't help) or seems to be missing something.

PyWallet -importprivkey=LawlThisIsAnExampleWalletKeyUsedAsPadding --label=Main --datadir="C:\Documents and Settings\Owner\Application Data\Bitcoin"  --wallet=DonorWallet.dat

And before it gets suggested, yes I know how to import into the client, but I have about 700+ keys I need to work on, and I don't feel like doing each one manually. I hope you understand. Smiley If I can get the importprivkey command to work with PyWallet, I can handle the rest from there. Thanks in advance!
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
February 28, 2014, 04:12:27 AM
 #2

I've never used it, but the examples on the website don't use =, what error do you get without it?

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
kodan50 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
February 28, 2014, 04:22:39 AM
 #3

I replaced the equal sign with a space, but it threw the same error message as before, mandatory option missing. Sad

Also, it's jackjack's fork, if that means anything at all.
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
February 28, 2014, 04:31:25 AM
 #4

Try two dashes on importprivkey

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
kodan50 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
February 28, 2014, 04:33:19 AM
 #5

Good eye on the missing dash, but it's still spitting the same error message. Sad
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
February 28, 2014, 04:37:35 AM
 #6

Is your wallet encrypted?

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
kodan50 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
February 28, 2014, 04:40:40 AM
 #7

Nope, is it in its stock, unencrypted glory! Smiley
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
February 28, 2014, 04:41:25 AM
 #8

Is pywallet the correct way to run it from windows?  On linux I have to do python pywallet.py

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
kodan50 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
February 28, 2014, 04:49:18 AM
 #9

Oh yeah, I do have to type Py before PyWallet to call it. I should have added that. Sorry for missing that in the original post. PyWallet is being called, since I can see the help text that automatically shows when you fail to type what it wants.
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
February 28, 2014, 05:18:13 AM
 #10

Does it work if you just use --importprivkey without any other options, assuming you have a wallet.dat in the default location?

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
kodan50 (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
February 28, 2014, 05:55:38 AM
 #11

Same error. Can I import keys using something else? Does Bitcoin-Qt offer the ability to import keys using CMD? Or, is there a way I can paste them all into the console? I tried to add the importprivkey in front of each key, but I can't just drop them all into the console since it doesn't understand a line break.
spin
Sr. Member
****
Offline Offline

Activity: 362
Merit: 262


View Profile
February 28, 2014, 11:21:03 AM
 #12

See the importpivkey command here:
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

You can execute it in the command/debug window.  This can be accessed from the top right menu of bitcoin-qt. 

Or even better: https://en.bitcoin.it/wiki/How_to_import_private_keys_v7%2B

If you liked this post buy me a beer.  Beers are quite cheap where I live!
bc1q707guwp9pc73r08jw23lvecpywtazjjk399daa
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
February 28, 2014, 06:19:48 PM
 #13

Are your private keys all in a text file?  Give a sample line

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
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!