<p>If you found an old wallet (prior to Core 0.13 which was released in August 2016), it wasn't using BIP32 HD. So there is very very likely no master private key,... instead, there are a large number of private keys.</p>

<p>You can use <code>dumpwallet &lt;filename&gt;</code> in the GUI console or via RPC to extract your private keys to a text file and import them into a different application.</p>

<p>But if you see transactions in Bitcoin Core and your balance is zero, this mostly means that there must be one or multiple spending transactions that have spent your mined bitcoins.</p>

CC BY-SA 4.0
2018-12-19T21:23:09.040Z
2018-12-19T21:23:09.040Z
Jonas Schnelli
<p>I found an old wallet.dat it contained hundreds of transactions while i was mining.</p>

<p>I've replaced the wallet.dat in a new Bitcoin Core wallet, rescanned, all the txid are showing but the amount of bitcoin stored there is not! It now shows 0 coins</p>

<p>I know i never sent them out + all the tx are inputs nothing is out, so far i tried rescan. </p>

<p>any idea how can i extract for example a master privat key for the entire wallet, and import it somewhere ?</p>

CC BY-SA 4.0
2018-12-19T08:02:54.707Z
Have you verified the tx ID exists on an explorer? Wallet files are often compatible across coins, you may have been mining litecoin or something else
Raghav Sood
CC BY-SA 4.0
2018-12-19T13:21:06.590Z
yup, all tx are containing very small amounts (bitcoin) i used the dumpwallet command to get all public+privat keys turned out i got over 2800 transactions (my head hurts) so this command also give me an extended private masterkey (starting with: xprv) so my question is, how can i convert this extended key into simple privat key so i can sweep it into another wallte and get my coins out (if this is how it works, or maybe im wrong)
Vamp555
CC BY-SA 4.0
2018-12-19T13:33:37.087Z
may be using  --reindex flag and adding txindex=1 in conf file solve your issue of showing 0  Coins during scanning process
Parishilan Rayamajhi
CC BY-SA 4.0
2018-12-20T07:53:23.343Z
@cryptoKTM this seams something worth giving a try, is there a difference if i add  -reindex flag to the end of the "Target" parameter or just -reindex ? also it appears i dont have a bitcoin.conf file. i looked everywhere since my folder is in not the default directory. What can i do to creat one so i can add thxindex=1 command
Vamp555
CC BY-SA 4.0
2018-12-20T07:56:58.880Z
you have to create bitcoin.conf file in the data dir, by defult data directiry is 

/home/user/.bitcoin 

and 
bitcoind -daemon  --reindex
is the command to reindex it
Parishilan Rayamajhi
<bitcoin-core><wallet><wallet.dat>
old wallet.dat with only incoming tx from mining, now shows 0 coins even after rescan and all the transactions are there
Vamp555
# old wallet.dat with only incoming tx from mining, now shows 0 coins even after rescan and all the transactions are there

(Asked by: username_0 on 2018-12-19)

I found an old wallet.dat it contained hundreds of transactions while i was mining.

I've replaced the wallet.dat in a new Bitcoin Core wallet, rescanned, all the txid are showing but the amount of bitcoin stored there is not! It now shows 0 coins

I know i never sent them out + all the tx are inputs nothing is out, so far i tried rescan.

any idea how can i extract for example a master privat key for the entire wallet, and import it somewhere ?

**Tags:** bitcoin-core, wallet, wallet.dat

> **Comments:**
> **username_1**: Have you verified the tx ID exists on an explorer? Wallet files are often compatible across coins, you may have been mining litecoin or something else  
> **username_0**: yup, all tx are containing very small amounts (bitcoin) i used the dumpwallet command to get all public+privat keys turned out i got over 2800 transactions (my head hurts) so this command also give me an extended private masterkey (starting with: xprv) so my question is, how can i convert this extended key into simple privat key so i can sweep it into another wallte and get my coins out (if this is how it works, or maybe im wrong)  
> **username_2**: may be using  --reindex flag and adding txindex=1 in conf file solve your issue of showing 0  Coins during scanning process  
> **username_0**: @cryptoKTM this seams something worth giving a try, is there a difference if i add  -reindex flag to the end of the "Target" parameter or just -reindex ? also it appears i dont have a bitcoin.conf file. i looked everywhere since my folder is in not the default directory. What can i do to creat one so i can add thxindex=1 command  
> **username_2**: you have to create bitcoin.conf file in the data dir, by defult data directiry is   /home/user/.bitcoin   and  bitcoind -daemon  --reindex is the command to reindex it  

---

## 1 answers

### Answer by username_3 on 2018-12-19. Score: 1

If you found an old wallet (prior to Core 0.13 which was released in August 2016), it wasn't using BIP32 HD. So there is very very likely no master private key,... instead, there are a large number of private keys.

You can use `dumpwallet <filename>` in the GUI console or via RPC to extract your private keys to a text file and import them into a different application.

But if you see transactions in Bitcoin Core and your balance is zero, this mostly means that there must be one or multiple spending transactions that have spent your mined bitcoins.


---

