Bitcoin Forum
April 23, 2021, 06:02:53 PM *
News: Latest Bitcoin Core release: 0.21.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Dumping private keys gives me an error  (Read 114 times)
MelG
Jr. Member
*
Offline Offline

Activity: 149
Merit: 5


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?
1619200973
Hero Member
*
Offline Offline

Posts: 1619200973

View Profile Personal Message (Offline)

Ignore
1619200973
Reply with quote  #2

1619200973
Report to moderator
1619200973
Hero Member
*
Offline Offline

Posts: 1619200973

View Profile Personal Message (Offline)

Ignore
1619200973
Reply with quote  #2

1619200973
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1619200973
Hero Member
*
Offline Offline

Posts: 1619200973

View Profile Personal Message (Offline)

Ignore
1619200973
Reply with quote  #2

1619200973
Report to moderator
1619200973
Hero Member
*
Offline Offline

Posts: 1619200973

View Profile Personal Message (Offline)

Ignore
1619200973
Reply with quote  #2

1619200973
Report to moderator
1619200973
Hero Member
*
Offline Offline

Posts: 1619200973

View Profile Personal Message (Offline)

Ignore
1619200973
Reply with quote  #2

1619200973
Report to moderator
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1274
Merit: 1838


Write @Rath or quote my post to notify me


View Profile WWW
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
Jr. Member
*
Offline Offline

Activity: 149
Merit: 5


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
Jr. Member
*
Offline Offline

Activity: 149
Merit: 5


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!