Author

Topic: What is dump private key? (Read 237 times)

jr. member
Activity: 413
Merit: 5
March 22, 2018, 02:33:00 AM
#9
newbie
Activity: 8
Merit: 0
March 22, 2018, 02:11:09 AM
#8
Where did you find v0.8?
jr. member
Activity: 413
Merit: 5
March 22, 2018, 12: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.
full member
Activity: 198
Merit: 130
Some random software engineer
March 22, 2018, 12: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 ?)
jr. member
Activity: 413
Merit: 5
March 21, 2018, 10:16:27 PM
#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?
full member
Activity: 210
Merit: 119
March 21, 2018, 09:18:41 PM
#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.
jr. member
Activity: 413
Merit: 5
March 21, 2018, 08:49:45 PM
#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.
full member
Activity: 210
Merit: 119
March 21, 2018, 08:26:47 PM
#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?
jr. member
Activity: 413
Merit: 5
March 21, 2018, 08:14:06 PM
#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?

Jump to: