Bitcoin Forum
May 03, 2024, 09:20:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Dumping private keys gives me an error  (Read 139 times)
MelG (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
May 21, 2020, 08:15:26 AM
 #1

Hey guys and girls. I am trying to get my private keys from old Bitcoin core wallet by dumping the wallet file with following console commands:

- walletpassphrase "my walletpassphrase here" 600
* walletpassphrase(…)
* null

and then:

- dumpwallet C:\dump.txt

But I get back: Cannot open wallet dump file (code -8)

What do I do wrong?
1714728038
Hero Member
*
Offline Offline

Posts: 1714728038

View Profile Personal Message (Offline)

Ignore
1714728038
Reply with quote  #2

1714728038
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714728038
Hero Member
*
Offline Offline

Posts: 1714728038

View Profile Personal Message (Offline)

Ignore
1714728038
Reply with quote  #2

1714728038
Report to moderator
1714728038
Hero Member
*
Offline Offline

Posts: 1714728038

View Profile Personal Message (Offline)

Ignore
1714728038
Reply with quote  #2

1714728038
Report to moderator
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
May 21, 2020, 08:20:57 AM
Merited by OgNasty (2)
 #2

But I get back: Cannot open wallet dump file (code -8)

Your forgot about inverted commas. You should also choose a different location. I couldn't dump my wallet directly to the C drive (probably due to lack of permissions). Try the following command (replace USERNAME with your username).

Code:
dumpwallet "C:\Users\USERNAME\Desktop\dump.txt"

MelG (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
May 21, 2020, 08:34:28 AM
 #3

Thanks! That worked. But now I am facing a new problem. The wallet dump seems to contain tons of lines but I cannot locate my BTC address that I used for this wallet anywhere in it. The address I have is starting with number 1 but all the addresses I can see in the dump are starting with number 3.  Huh

What I am really trying to achieve is to be able to get the private key of my wallet that contains some BTC so I can import it with another wallet that does not require downloading the whole blockchain to be able to function. When I tried:

dumpprivkey mybtcaddress

I get back:

Private key for address mybtcaddress is not known (code -4)
MelG (OP)
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
May 21, 2020, 09:06:59 AM
Merited by Rath_ (1)
 #4

I figured out. The only thing I did not understand was that the Bitcoin Core had changed the file structure for wallet.dat and I had placed my wallet file in a wrong folder.  Grin Everything worked out now. Thanks again for the help! This topic can be closed.
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!