Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: BitcoinDummy on July 04, 2018, 02:34:46 AM



Title: How to get private key ?
Post by: BitcoinDummy on July 04, 2018, 02:34:46 AM
How do I get private key from bitcoin version 0.3.22 BETA

There is no console or debug window.


Title: Re: How to get private key ?
Post by: Btcspot on July 04, 2018, 05:27:28 AM
 Hi just download new bitcoin core at bitcoin.org, then go to  C:\Users\YourUserName\Appdata\Roaming\Bitcoin\wallet.dat and save it before you install new bitcoin core. Then put your wallet.dat back there.

 To export a private key from your bitcoin-qt client:

   launch your bitcoin client as usual and wait for it then stop it
   click on 'help' in the menu bar (top right)
   click on 'debug window'
   select the 'console' tab
   type: walletpassphrase "your walletpassphrase here" 600
   type: dumpprivkey [your Bitcoin address here]
 


Title: Re: How to get private key ?
Post by: bob123 on July 04, 2018, 11:26:58 AM
Importing an old wallet into a new version should work since afaik the devs always worked on backwards compatibility.
First, backup your wallet (And move them somewhere safe).

Then you can try to import the wallet file into the new core version (install core -> move the wallet file inside the directory).

If this somehow doesn't work you might try to use pywallet(https://github.com/jackjack-jj/pywallet (https://github.com/jackjack-jj/pywallet)).
This tool allows you to dump all private keys found on your drive.

Even though this tool hasn't been updated for a pretty long time, it still works for .dat's from older versions.


Title: Re: How to get private key ?
Post by: fredo123 on July 05, 2018, 12:46:53 PM
Hi just download new bitcoin core at bitcoin.org, then go to  C:\Users\YourUserName\Appdata\Roaming\Bitcoin\wallet.dat and save it before you install new bitcoin core. Then put your wallet.dat back there.

 To export a private key from your bitcoin-qt client:

   launch your bitcoin client as usual and wait for it then stop it
   click on 'help' in the menu bar (top right)
   click on 'debug window'
   select the 'console' tab
   type: walletpassphrase "your walletpassphrase here" 600
   type: dumpprivkey [your Bitcoin address here]
 
The same problem i encountered as mention above, I just follow the commands stated below, still doesn't work in my laptop,:(


Title: Re: How to get private key ?
Post by: bob123 on July 05, 2018, 07:27:43 PM
  launch your bitcoin client as usual and wait for it then stop it
   click on 'help' in the menu bar (top right)
   click on 'debug window'
   select the 'console' tab
   type: walletpassphrase "your walletpassphrase here" 600
   type: dumpprivkey [your Bitcoin address here] 
I just follow the commands stated below, still doesn't work in my laptop,:(

What exactly did not work?
Weren't you able to dump the private keys of your addresses?

Because each command itself is correct. Mind explaining where it didn't work or what exactly didn't work?


Title: Re: How to get private key ?
Post by: BitcoinDummy on July 05, 2018, 09:14:20 PM
@bob123 pls tell me how to do that pywallet .
i tried doing it but , i didn't see the zope.interface within that pywallet required to be installed.
if u can do it step by step with image that would help a lot .
Running on windows.


Title: Re: How to get private key ?
Post by: HCP on July 05, 2018, 10:25:50 PM
@bob123 pls tell me how to do that pywallet .
i tried doing it but , i didn't see the zope.interface within that pywallet required to be installed.
if u can do it step by step with image that would help a lot .
Running on windows.
For PyWallet, you need to have Python 2.7 installed: https://www.python.org/downloads/release/python-2715/

DO NOT install Python 3.x... it will not work.

You can ensure that PyWallet is installed correctly (along with the necessary libraries) by using the PyWallet installer from here: https://bitcointalk.org/index.php?topic=34028.0
(https://github.com/downloads/jackjack-jj/pywallet/PWI_0.0.3.exe)


Title: Re: How to get private key ?
Post by: alejandrosn1998 on July 08, 2018, 02:58:51 PM
  launch your bitcoin client as usual and wait for it then stop it
   click on 'help' in the menu bar (top right)
   click on 'debug window'
   select the 'console' tab
   type: walletpassphrase "your walletpassphrase here" 600
   type: dumpprivkey [your Bitcoin address here] 
I just follow the commands stated below, still doesn't work in my laptop,:(

What exactly did not work?
Weren't you able to dump the private keys of your addresses?

Because each command itself is correct. Mind explaining where it didn't work or what exactly didn't work?

Don't use the "" or the [] its just to show the input, so for example if my passphrase is 34523mkmkm it would look like this, if my btc address is 2k3m4k234m:
walletpassphrase 34523mkmkm 600
after typing above, press enter.
dumpprivkey 2k3m4k234m
after typing the above, press enter.