Bitcoin Forum
May 04, 2024, 11:23:47 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: trouble retrieving private key  (Read 255 times)
Anna1406 (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
August 23, 2017, 06:11:14 PM
 #1

been trying to get my private keys from my bitcoin core wallet but 'dumpprivkey' always returns 'error-5'.
the only thing i can think of is that i'm using the wrong public key but i'm not sure where i'm going wrong. i tried 'getaddressbyaccount', 'getaccountaddress' and 'validateaddress' in combination with the receiving address i used for the transaction but none of them will give me a public key that works in 'dumpprivkey' 
the only other thing i could see affecting things is that i'm offline when i try to get my private keys but i don't see how this would make a difference
at a total loss here so any help is appreciated
1714865027
Hero Member
*
Offline Offline

Posts: 1714865027

View Profile Personal Message (Offline)

Ignore
1714865027
Reply with quote  #2

1714865027
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714865027
Hero Member
*
Offline Offline

Posts: 1714865027

View Profile Personal Message (Offline)

Ignore
1714865027
Reply with quote  #2

1714865027
Report to moderator
1714865027
Hero Member
*
Offline Offline

Posts: 1714865027

View Profile Personal Message (Offline)

Ignore
1714865027
Reply with quote  #2

1714865027
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4616



View Profile
August 23, 2017, 06:43:12 PM
 #2

the only other thing i could see affecting things is that i'm offline when i try to get my private keys but i don't see how this would make a difference

You don't need to be online.

been trying to get my private keys from my bitcoin core wallet but 'dumpprivkey' always returns 'error-5'.
the only thing i can think of is that i'm using the wrong public key but i'm not sure where i'm going wrong. i tried 'getaddressbyaccount', 'getaccountaddress' and 'validateaddress' in combination with the receiving address i used for the transaction but none of them will give me a public key that works in 'dumpprivkey'

You shouldn't be using a public key.  You should be using the bitcoin address that was generated by the wallet.

Code:
dumpprivkey 1YourBitcoinAddressGoesHere
Where: 1YourBitcoinAddressGoesHere is the bitcoin address generated for that wallet file for which you want the private key.
Anna1406 (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
August 23, 2017, 07:45:32 PM
 #3

thank you. seems like i was working with bad instructions. worked fine this time  Smiley
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!