Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: wsxdrfv on March 22, 2018, 01:14:06 AM



Title: What is dump private key?
Post by: wsxdrfv on March 22, 2018, 01:14:06 AM
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?



Title: Re: What is dump private key?
Post by: bitperson on March 22, 2018, 01:26:47 AM
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?


Title: Re: What is dump private key?
Post by: wsxdrfv on March 22, 2018, 01:49:45 AM
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.


Title: Re: What is dump private key?
Post by: bitperson on March 22, 2018, 02:18:41 AM
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.


Title: Re: What is dump private key?
Post by: wsxdrfv on March 22, 2018, 03:16:27 AM
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?


Title: Re: What is dump private key?
Post by: starmyc on March 22, 2018, 05:05:02 AM
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 ?)


Title: Re: What is dump private key?
Post by: wsxdrfv on March 22, 2018, 05:53:36 AM
(The message is not the same because I guess you're using an old fork, isn't it ?)
Yes, litecoin 0.8 version cloned.


Title: Re: What is dump private key?
Post by: cryptonite70 on March 22, 2018, 07:11:09 AM
Where did you find v0.8?


Title: Re: What is dump private key?
Post by: wsxdrfv on March 22, 2018, 07:33:00 AM
Where did you find v0.8?
Github