Author

Topic: Extracting private keys from wallet.dats? (Read 1263 times)

copper member
Activity: 1498
Merit: 1520
No I dont escrow anymore.
April 09, 2015, 03:37:26 AM
#8
If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Can this be done in cmd using a language like autoit or something... With the wallet.dats on hand?

Here is some info how to call the bitcoind API from various languages:

https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)

This requires to change the wallet.dat files each time. OP could just use pywallet.
legendary
Activity: 924
Merit: 1000
If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Can this be done in cmd using a language like autoit or something... With the wallet.dats on hand?

Here is some info how to call the bitcoind API from various languages:

https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)
legendary
Activity: 1120
Merit: 1002
If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Can this be done in cmd using a language like autoit or something... With the wallet.dats on hand?
not just with the wallet.dat.
 To run this comand you have to run the client on your computer ( bitcoin core )
sr. member
Activity: 448
Merit: 250
I'm a Web Developer: HTML, CSS, PHP, JS.
If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.

Can this be done in cmd using a language like autoit or something... With the wallet.dats on hand?
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
Private key is shortly after a "keyA" ascii sequence in the file.
Some technical details are here: https://bitcointalk.org/index.php?topic=22697.0;topicseen
They should be useful, especially if you want to code the priv key searcher.
legendary
Activity: 924
Merit: 1000
If you're using bitcoin-qt (bitcoin core) wallet, you can open Help/Debug and go to the console. Enter

Quote
dumpprivkey "bitcoinaddress"

to extract the private key. If you encrypted your wallet, you must enter the wallet passphrase with "walletpassphrase" first.
legendary
Activity: 3416
Merit: 4658
pywallet?
sr. member
Activity: 448
Merit: 250
I'm a Web Developer: HTML, CSS, PHP, JS.
Is there any way to extract wallet keys without having to turn off my wallet and change wallet.dats? I'm wondering this because here has to be an easier way if I'm stuck with a ton of wallet.dats, I'm wanting to code a bot to do this for me and put em all in a text file. Any ideas?
Jump to: