Bitcoin Forum
July 12, 2024, 03:57:26 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is dump private key?  (Read 208 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 22, 2018, 01:14:06 AM
 #1

When type "dumpprivkey (address) " at console window at qt program,

If error message shows like

--------
Private key for address (address) is not known (code -4)
--------

What this means?

How can I fix this?

bitperson
Full Member
***
Offline Offline

Activity: 210
Merit: 119


View Profile
March 22, 2018, 01:26:47 AM
 #2

When type "dumpprivkey (address) " at console window at qt program,

If error message shows like

--------
Private key for address (address) is not known (code -4)
--------

What this means?

How can I fix this?
Is your wallet password protected, and if so, did you unlock it first? Are you sure the address is correct and one of your own addresses?

How to ask questions the smart way
When you’re happy with the answers in a thread you have started, please click ‘lock topic’ to prevent spam.
1AWrZWnN4ThpGB5z24WTzsoZRMqvLpDGYU
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 22, 2018, 01:49:45 AM
 #3

When type "dumpprivkey (address) " at console window at qt program,

If error message shows like

--------
Private key for address (address) is not known (code -4)
--------

What this means?

How can I fix this?
Is your wallet password protected, and if so, did you unlock it first? Are you sure the address is correct and one of your own addresses?

I don't know, another guy send me screenshot he got above error.

and I just tested with my wallet, encrypted, same error occurs. Yes my own address.
bitperson
Full Member
***
Offline Offline

Activity: 210
Merit: 119


View Profile
March 22, 2018, 02:18:41 AM
 #4

When type "dumpprivkey (address) " at console window at qt program,

If error message shows like

--------
Private key for address (address) is not known (code -4)
Is your wallet password protected, and if so, did you unlock it first? Are you sure the address is correct and one of your own addresses?
I just tested with my wallet, encrypted, same error occurs. Yes my own address.
Try unlocking the wallet using walletpassphrase first.

How to ask questions the smart way
When you’re happy with the answers in a thread you have started, please click ‘lock topic’ to prevent spam.
1AWrZWnN4ThpGB5z24WTzsoZRMqvLpDGYU
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 22, 2018, 03:16:27 AM
 #5

When type "dumpprivkey (address) " at console window at qt program,

If error message shows like

--------
Private key for address (address) is not known (code -4)
Is your wallet password protected, and if so, did you unlock it first? Are you sure the address is correct and one of your own addresses?
I just tested with my wallet, encrypted, same error occurs. Yes my own address.
Try unlocking the wallet using walletpassphrase first.
I already know my wallet passphrase. I can send money to others.
How to unlock the wallet? You mean change the passphrase?
starmyc
Full Member
***
Offline Offline

Activity: 198
Merit: 130

Some random software engineer


View Profile
March 22, 2018, 05:05:02 AM
 #6

Try unlocking the wallet using walletpassphrase first.

If the wallet was locked, the error message would be:

Code:
$ /opt/bitcoin/bin/bitcoin-cli dumpprivkey 3CZELpSSQMiyd3QHVxnrF968ksL5AAAAAA
error code: -13
error message:
Error: Please enter the wallet passphrase with walletpassphrase first.

When type "dumpprivkey (address) " at console window at qt program,

If error message shows like

--------
Private key for address (address) is not known (code -4)
--------

What this means?

How can I fix this?

It seems the wallet doesn't know the private key of given address. You won't be able to spend coins of this address without importing its private key first.
Are you sure the address is correct and the wallet is supposed to know the private key ? Because it doesn't.

Code:
$ /opt/bitcoin/bin/bitcoin-cli dumpprivkey 3CZELpSSQMiyd3QHVxnrF968ksL5AAAAAA
error code: -13
error message:
Error: Please enter the wallet passphrase with walletpassphrase first.

$ /opt/bitcoin/bin/bitcoin-cli walletpassphrase "bitcoinROX" 3600

# The address is known:
$ /opt/bitcoin/bin/bitcoin-cli dumpprivkey 3CZE[...redacted...]yPLA
L5[...redacted...]Bo

# The address is not known:
$ /opt/bitcoin/bin/bitcoin-cli dumpprivkey 3G73[...redacted...]WUUV
error code: -3
error message:
Address does not refer to a key

(The message is not the same because I guess you're using an old fork, isn't it ?)

Hi, I'm just some random software engineer.
You can check my projects: Bitcoin & altcoin balances/addresses listing dumps: https://balances.crypto-nerdz.org/
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 22, 2018, 05:53:36 AM
 #7

(The message is not the same because I guess you're using an old fork, isn't it ?)
Yes, litecoin 0.8 version cloned.
cryptonite70
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
March 22, 2018, 07:11:09 AM
 #8

Where did you find v0.8?
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 405
Merit: 5


View Profile WWW
March 22, 2018, 07:33:00 AM
 #9

Where did you find v0.8?
Github
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!