Questions tagged [wallet.dat]

A file named wallet.dat is used by Bitcoin Core which stores private keys and other information necessary to backup and recover a wallet.

Wallet.dat files are files created by software derived from the original Satoshi client, including Bitcoin Core. The wallet file is specifically a Berkeley DB database file. It stores private keys, transactions, and other data required to spend Bitcoin. Wallet.dat files can store private keys in an encrypted form to protect users' money even if the file is stolen.

285 questions
11
votes
1 answer

Filesystem is corrupt. How to find wallet.dat?

A customer of mine brought me a 2TB crashed harddrive. The drive itself is not damaged physically, but the file tables (MFT / NTFS) are corrupt so there is zero ability to recover files with their original names. The contents of the drive is not…
bos
  • 213
  • 2
  • 7
3
votes
1 answer

What determines BTC's wallet size in bytes?

Does wallet.dat contain every address that I created? Even if I didn't get any coins from it? To be clear, suppose I run bitcoin-qt in Linux, and, in the GUI, I click on Receive then click on Create new receiving address: At this point, no coins…
caveman
  • 135
  • 5
3
votes
2 answers

Recover Old Bitcoin Wallet (Currently getting a Segfault)

I have a bit of bitcoin lingering in an old bitcoin wallet (circa 2011). I just restored it from a backup but I can't seem to load it into bitcoin-qt. If I launch the app, shut it down, the copy in my old wallet.dat file and re-open, it shows a zero…
dave mankoff
  • 131
  • 1
  • 2
3
votes
2 answers

Bitcoin wallet - why do i need it for cold storage?

Why do I need a bitcoin wallet for cold storage? Can I just write down randomly generated public address and private key pairs, and keep these on paper? I am confused by the apparent need for a wallet stored on a thumb drive or some other data…
j34jk
  • 31
  • 1
2
votes
1 answer

Problem with my bitcoin wallet

In the distant 2013 I tried to deal with mining. At that time it was much easier than it is now. I downloaded the official program (the version I did not remember), installed it on my computer with a powerful, at that time, videocard and mined. When…
Godsun
  • 21
  • 1
2
votes
1 answer

Do Berkley DB versions need to be the same?

If I build using --with-incompatible-bdb, will the resulting wallet be incompatible with the bitcoin core client from bitcoin.org? What if I'm using a newer version?
Nick ODell
  • 29,396
  • 11
  • 72
  • 130
2
votes
1 answer

Opening wallet.dat in python, using bsddb3

I'm trying to open wallet.dat using the bsddb3 module for Python 2.7. db = bsddb3.btopen("wallet.dat", "r") contents of db: {'main': '\x00\x00\x00\x02'} I have to Which is almost nothing. ls -l wallet.dat -> 72K I though I could view information…
psycat
  • 141
  • 5
2
votes
1 answer

Loading wallet crashes bitcoin core wallet

When trying to load a wallet I last used in 2017 December, in bitcoin core wallet 0.21.0 x64, the UI exits abruptly, last few lines in the debug.log shows the following: 2021-02-10T07:20:22Z Using wallet…
1
vote
1 answer

wallet.dat inserted into .jpg image

I was wondering if anyone ever came across a situation where a wallet.dat file was encoded into an image like a .jpg? I have this wacky idea of taking a wallet.dat file and somehow encoding it into an image. For example, you would like at a…
user109392
  • 11
  • 1
1
vote
1 answer

keypool and restoring from backup

I have a wallet running on a raspbery pi and the SD card hit the skids, fortunatley I have a backup of the .iso from 1 month ago so I have recovered the entire state as of that time. My only concern is over the keypool. I had increasead it to 1000…
Scalextrix
  • 432
  • 2
  • 10
1
vote
1 answer

How do I prune/clean wallet.dat for old unused addresses

Are there any easy way to prune wallet.dat? Like, deleting keys for addresses with no current balance and generated more than a month ago?
Svante
  • 111
  • 2
1
vote
0 answers

Import Wallet.dat with bitcoins on it

This might sound a bit odd. I have had a Bitcoin app for a few years now. A few years ago I made a copy of Wallet.dat and put it on a stick. Now my computer crashed and i don't know how to import it or where to put it. I got Bitcoin Core and let it…
Ral
  • 11
  • 1
1
vote
1 answer

How to merge two wallet.dat files

I know about pywallet, about this modification for bitcoind, but what is a simple way to merge two wallets, or export a list of private keys and addresses of all of wallets from litecoin, dogecoin, bitcoin, quark, et cetera? Thank you!
Alex
  • 11
  • 2
1
vote
0 answers

Get balances from all addresses in wallet.dat / json file

I have a (possibly old) wallet.dat file with dozens to hundreds of addresses. It is obviously prohibitively expensive to manually look up each one. Does anybody know a way to analyse all of them to find if any have a balance greater than 0? The…
Cheetaiean
  • 111
  • 1
0
votes
1 answer

Wallet.dat corrupted

I ran Bitcoin during 2009 and 2010. I found an old file I had renamed to xxxx.dat. I recently downloaded the Bitcoin.org wallet and let it run. I get the "wallet.dat corrupted, salvage failed" message after I put in the file I believe to be my old…
1
2