Author

Topic: i need help whis broken wallet.dat (Read 206 times)

legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
February 17, 2022, 01:42:17 AM
#16
I did have an old 0.20.1 unpacked on my node (it's no longer been used, but i have the habit of keeping historical versions after upgrading).
When executing
./bitcoin-qt -help

I do see
Code:
  -salvagewallet
       Attempt to recover private keys from a corrupt wallet on startup

So, the functionality should still be available from within the bitcoin-qt executable in 0.20.1.
This being said, doing "nothing" is what it's supposed to do... It shouldn't give you any warning messages or popups... The command should just run and close without giving any additional message. It should have created a backup copy of your wallet file (with a .bak) extension and the wallet file itself should have been salvaged.

I have no idear what the success ratio is tough... I guess it's possible bitcoin core finds your wallet is not salvagable.

Be carefull with sending wallet files to anybody... If you must send your wallet file to somebody because you really can't figure stuff out, make sure you only send it to somebody you trust.
member
Activity: 330
Merit: 34
February 16, 2022, 03:19:11 AM
#15
Which version are you running? It seems salvagewallet was removed from 0.21.0, so if you're running a version pre 0.21.0, you could try the initial command given by BitMaxz.

EDIT: i just logged on to my system, and had a look for myself (-help). Seems like the command is:
./bitcoin-wallet salvage --"wallet.dat"
At least, that how it works for me..

On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)

So basically, if you're running >=0.21.0, you could try to switch the salvage command and the path...

i do
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\bit\wallets\wallet.dat
and
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\\bit\\wallets\\wallet.dat

the same effect. Flashes for a second. But nothing starts and nothing happens

-salvage   does not work in my version at all. writes that such command is unknown

I really hope that my key that I received after processing the information from the first post by the script will somehow help
"YmM63dDbt...+....."


Did you look at the command i posted vs your command?
executable -salvagewallet --"path"
is not the same as
executable salvage --"path"

But first things first: which bitcoin core version are you using?
0.20.1
when you finish your last option for bad db inside wallet.dat recovery, then can try to give me dat file, i will recover db inside dat file manually, and make sure no demand from me, if recovered, will fw back to you as it is
member
Activity: 96
Merit: 36
February 16, 2022, 02:44:11 AM
#14
Which version are you running? It seems salvagewallet was removed from 0.21.0, so if you're running a version pre 0.21.0, you could try the initial command given by BitMaxz.

EDIT: i just logged on to my system, and had a look for myself (-help). Seems like the command is:
./bitcoin-wallet salvage --"wallet.dat"
At least, that how it works for me..

On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)

So basically, if you're running >=0.21.0, you could try to switch the salvage command and the path...

i do
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\bit\wallets\wallet.dat
and
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\\bit\\wallets\\wallet.dat

the same effect. Flashes for a second. But nothing starts and nothing happens

-salvage   does not work in my version at all. writes that such command is unknown

I really hope that my key that I received after processing the information from the first post by the script will somehow help
"YmM63dDbt...+....."


Did you look at the command i posted vs your command?
executable -salvagewallet --"path"
is not the same as
executable salvage --"path"

But first things first: which bitcoin core version are you using?
0.20.1
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
February 16, 2022, 02:27:49 AM
#13
Which version are you running? It seems salvagewallet was removed from 0.21.0, so if you're running a version pre 0.21.0, you could try the initial command given by BitMaxz.

EDIT: i just logged on to my system, and had a look for myself (-help). Seems like the command is:
./bitcoin-wallet salvage --"wallet.dat"
At least, that how it works for me..

On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)

So basically, if you're running >=0.21.0, you could try to switch the salvage command and the path...

i do
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\bit\wallets\wallet.dat
and
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\\bit\\wallets\\wallet.dat

the same effect. Flashes for a second. But nothing starts and nothing happens

-salvage   does not work in my version at all. writes that such command is unknown

I really hope that my key that I received after processing the information from the first post by the script will somehow help
"YmM63dDbt...+....."


Did you look at the command i posted vs your command?
executable -salvagewallet --"path"
is not the same as
executable salvage --"path"

But first things first: which bitcoin core version are you using?
member
Activity: 96
Merit: 36
February 16, 2022, 02:05:02 AM
#12
Which version are you running? It seems salvagewallet was removed from 0.21.0, so if you're running a version pre 0.21.0, you could try the initial command given by BitMaxz.

EDIT: i just logged on to my system, and had a look for myself (-help). Seems like the command is:
./bitcoin-wallet salvage --"wallet.dat"
At least, that how it works for me..

On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)

So basically, if you're running >=0.21.0, you could try to switch the salvage command and the path...

i do
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\bit\wallets\wallet.dat
and
Quote
I:\Bitcoin\bitcoin-qt.exe -salvagewallet I:\\bit\\wallets\\wallet.dat

the same effect. Flashes for a second. But nothing starts and nothing happens

-salvage   does not work in my version at all. writes that such command is unknown

I really hope that my key that I received after processing the information from the first post by the script will somehow help
"YmM63dDbt...+....."
member
Activity: 96
Merit: 36
February 16, 2022, 01:54:40 AM
#11
made through the properties of the label.
I trying to launch from a shortcut... Something flashes in a second. But nothing happens. Core won't start. The new "dat" did not appear. "bak" isn't either.

when I try to run the exe not through the shortcut, it says that dat is corrupted

db.log says:

Quote
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
__db_meta_setup: I:\bit\wallets\wallet.dat: unexpected file type or format
__db_meta_setup: I:\bit\wallets\wallet.dat: unexpected file type or format

version 0.20.1
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
February 16, 2022, 01:39:51 AM
#10
I try do exactly as you said. I went into the bitcoin core in the folder where the exe is located. There I launched a terminal and pointed the path to my broken walletdat
image : https://clip2net.com/s/4eX740G
Are you perhaps using an old version of Bitcoin Core, versions before v0.21.0?
If so, you can follow BitMaxz's instructions instead.

can i get my keys from the master key?
If you have the master key (private master key or hdseed?), then yes.
But based from your earlier reply, it seems like it's in encrypted format so you'll need to decrypt it with the password first.

-Edit-
On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)
If 'salvage' comes before the wallet path in Windows, it will take it as an additional parameter and will return with error:
Error: Additional arguments provided (--wallet=............)
My example should work without issues if he's using the correct version.
legendary
Activity: 3584
Merit: 5243
https://merel.mobi => buy facemasks with BTC/LTC
February 16, 2022, 01:38:36 AM
#9
Which version are you running? It seems salvagewallet was removed from 0.21.0, so if you're running a version pre 0.21.0, you could try the initial command given by BitMaxz.

EDIT: i just logged on to my system, and had a look for myself (-help). Seems like the command is:
./bitcoin-wallet salvage --"wallet.dat"
At least, that how it works for me..

On windows, that would make
bitcoin-wallet.exe salvage --"c:\\path to\\wallet.dat"
(at least, i think it'll need double slashes)

So basically, if you're running >=0.21.0, you could try to switch the salvage command and the path...
member
Activity: 96
Merit: 36
February 16, 2022, 01:31:04 AM
#8
"Invalid command: salvage"  and "Invalid command: salvagewallet"
You'll only get that result in Bitcoin Core so you must have missed/misunderstood my reply to BitMaxz's post.
Use "bitcoin-wallet" tool which I've pointed-out in my post.
I try do exactly as you said. I went into the bitcoin core in the folder where the exe is located. There I launched a terminal and pointed the path to my broken walletdat
image : https://clip2net.com/s/4eX740G
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
February 16, 2022, 01:09:50 AM
#7
"Invalid command: salvage"  and "Invalid command: salvagewallet"
You'll only get that result in Bitcoin Core so you must have missed/misunderstood my reply to BitMaxz's post.
Use "bitcoin-wallet" tool which I've pointed-out in my post.
member
Activity: 96
Merit: 36
February 16, 2022, 12:39:10 AM
#6
i have only response
"Invalid command: salvage"  and "Invalid command: salvagewallet"

can i get my keys from the master key?
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
February 15, 2022, 10:32:01 PM
#5
To salvage the wallet.dat make a copy or another backup of your wallet.dat first before the operation and put it in the bitcoin core wallet folder.
After that run the Bitcoin core wallet -salvagewallet you can put it on Bitcoin shortcut check the image below as a reference
The -savagewallet command line option was removed from Bitcoin-qt/cli v0.21.0
it's moved to 'bitcoin-wallet' tool as "salvage".

Here's how to use the command using that tool:
-snip-
"bitcoin-wallet" is in the "daemon" folder inside Bitcoin Core's installation directory (where bitcoind and bitcoin-cli are located).

To use it, open Terminal, cd to the directory where bitcoin-wallet is.
Then use the command (provide the full path to the wallet.dat file):
Code:
bitcoin-wallet --wallet="E:\Folder\wallet.dat" salvage

It wont return with any response (unless it failed) but you will see a backup file (wallet.dat.xxxxx.bak) where the wallet.dat is located.
The new wallet.dat is the "salvaged" wallet.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
February 15, 2022, 06:09:28 PM
#4
Would you mind trying wallet salvage?

To salvage the wallet.dat make a copy or another backup of your wallet.dat first before the operation and put it in the bitcoin core wallet folder.
After that run the Bitcoin core wallet -salvagewallet you can put it on Bitcoin shortcut check the image below as a reference



And let's hope it will generate a new wallet.dat that includes your keys and wallet.
member
Activity: 96
Merit: 36
February 15, 2022, 05:55:44 PM
#3
And do you know password?
If not, the only option is to brute-force it, using hash&salt information. For completely unknown password chances are… low.


Everything is very interesting)
wallet.dat
does not have a password, but it was corrupted
I found recovery programs on github. But it was not possible to restore everything
I was able to extract the masterKey from it. in base64  "YmM...."
but the problem is that the format of the address I need P2SH  "3...."
adress i know
and I have absolutely no idea how it can be obtained keys using Java. I can do any other (thank you  Smiley ) but this one doesn’t (((
legendary
Activity: 952
Merit: 1385
February 15, 2022, 04:33:11 PM
#2
And do you know password?
If not, the only option is to brute-force it, using hash&salt information. For completely unknown password chances are… low.
member
Activity: 96
Merit: 36
February 15, 2022, 02:56:04 PM
#1
I managed to get information from it in this format (I changed the salt and key, of course) How do I use this to recover the private keys of the wallet. I would be grateful for any help.

{
    "ckey": [],
    "keys": [],
    "mkey": {             
        "encrypted_key": "3cb3548fb9af4d66a6397fadd121bb63781a20f5789175f4b6eb1ed0edeb7ce3e9db6ea393a0db4 ef9d129ffffcb127f2e",
        "nDerivationIterations": 67570,
        "nDerivationMethod": 0,
        "nID": 1,
        "otherParams": "",
        "salt": "8683678f1a88d722"
    },
    "names": {},
    "pool": [],
    "tx": [],
    "version": 32500
}

besides that, I know the address.
Jump to: