Bitcoin Forum
December 15, 2024, 06:36:23 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Get Private key using passphrase and address?  (Read 220 times)
FaucetLove (OP)
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
November 12, 2017, 05:56:22 PM
 #1

Can anyone help me with the commandline to get a Private key using a locked core wallet with a passphrase and the address?

I am trying to do this with dogecoin core but it gives me error, i have done it fine before but the wallets were not locked with a passphrase.
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
November 12, 2017, 08:40:52 PM
 #2

Can anyone help me with the commandline to get a Private key using a locked core wallet with a passphrase and the address?

I am trying to do this with dogecoin core but it gives me error, i have done it fine before but the wallets were not locked with a passphrase.

You simply add "walletpassphrase "your walletpassphrase here" 600 dumpprivkey [your Bitcoin address here]"

Then relock your wallet with "walletlock"

Assuming that you know how to get into the console, this shouldn't be too hard to accomplish.

More instructions, https://bitcoin.stackexchange.com/questions/4203/how-can-i-export-the-private-key-for-an-address-from-the-satoshi-client

aleksej996
Sr. Member
****
Offline Offline

Activity: 490
Merit: 389


Do not trust the government


View Profile
November 12, 2017, 08:42:50 PM
 #3

I don't know about Dogecoin Core. but I can tell you how you would do it in Bitcoin Core.
First you need to unlock the wallet with walletpassphrase command for n amount of seconds. In this example you will unlock it for 10 minutes (n=600).
Code:
bitcoin-cli walletpassphrase "yourpassword123" 600
Then you can use dumpprivkey to get a private key for your address.
Code:
bitcoin-cli dumpprivkey "1YourBitcoinAddress"
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!