Bitcoin Forum
April 25, 2024, 01:02:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] I need help - Export priv keys  (Read 1967 times)
ingrownpocket (OP)
Legendary
*
Offline Offline

Activity: 952
Merit: 1000


View Profile
November 03, 2012, 12:54:26 PM
Last edit: January 16, 2013, 02:36:17 PM by Carlos L.
 #1

I have a 9 MB wallet with many txs and about 200 addrs, which many of them have BTC.

Since I cannot open this wallet with bitcoin.org client, I need some other way to extract priv keys and Import them to blockchain.info.
The wallet have a passphrase.

I already tryed that pywallet.py thing but I don't see any priv keys.
I used both pywallet.py -dumpwallet and localhost:8989
It gives me all addresses and txs, which makes my computer super slow.

I have Windows 7 32 bits.

How can I import this wallet priv keys to blockchain.info or any other wallet/client so I can send the BTC inside to my new wallet?
1714050159
Hero Member
*
Offline Offline

Posts: 1714050159

View Profile Personal Message (Offline)

Ignore
1714050159
Reply with quote  #2

1714050159
Report to moderator
1714050159
Hero Member
*
Offline Offline

Posts: 1714050159

View Profile Personal Message (Offline)

Ignore
1714050159
Reply with quote  #2

1714050159
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714050159
Hero Member
*
Offline Offline

Posts: 1714050159

View Profile Personal Message (Offline)

Ignore
1714050159
Reply with quote  #2

1714050159
Report to moderator
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1025



View Profile WWW
November 03, 2012, 08:59:43 PM
 #2

dumpprivkey    <bitcoinaddress>    Reveals the private key corresponding to <bitcoinaddress>

This is the RPC command you want.

While bitcoin-qt or bitcoind is running, open a command window in the C:\Program Files (x86)\Bitcoin\daemon\ directory of windows (remove "(x86)" since you are on 32 bit windows)

example command:
C:\Program Files (x86)\Bitcoin\daemon>bitcoind walletpassphrase myStupidPassword
C:\Program Files (x86)\Bitcoin\daemon>bitcoind dumpprivkey 1BitCoiNMeeTtSD9nX2RHvoWS2ZH6AMgmm
(private key appears here)
Pieter Wuille
Legendary
*
Offline Offline

Activity: 1072
Merit: 1174


View Profile WWW
November 03, 2012, 09:02:43 PM
 #3

This can also be done from the debug console since Bitcoin-Qt 0.7.

I do Bitcoin stuff.
flatfly
Legendary
*
Offline Offline

Activity: 1078
Merit: 1011

760930


View Profile
November 03, 2012, 09:36:34 PM
 #4

I have a 9 MB wallet with many txs and about 200 addrs, which many of them have BTC.

I'm not seeing myself doing that one by one.

I think this should be easier to script through a BAT file...
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1025



View Profile WWW
November 03, 2012, 11:33:10 PM
Last edit: November 04, 2012, 12:19:11 AM by deepceleron
 #5

You can use listreceivedbyaddress to print out all the addresses that you have ever received money at:

>bitcoind listreceivedbyaddress | findstr address > addresslist.txt

Then some clever search and replace can turn that into a .cmd file to do the above key export for each one:

Code:
powershell.exe
Get-Content addresslist.txt | ForEach-Object { $_ -replace "` ` ` ` ` ` ` ` `"address`" : `"" , "bitcoind dumpprivkey " } | ForEach-Object { $_ -replace "`"," , " >> privkeylist.txt" } | Set-Content export.cmd
exit
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!