<p>Unfortunately, yes - the control over the 0.9 btc has been lost most probably. It seems that the private key to the change 0.9 btc address has been lost by the deletion of the wallet.dat that stored it. It is practically impossible to restore the private key. A change private key is not derived (deterministacally generated) from an imported private key according to &quot;https://bitcointalk.org/index.php?topic=5190841.0&quot;. It can be verified (by reproducing the scenario in Testnet). Data recovery may come to rescue - the wallet.dat may have not been deleted unrecoverably altough it's a long shot.</p>
<p>The design of Bitcoin Core seems to trade off safety of funds (risk of loss) against pseudoanonimity-by-defalult in that case. It's a known issue.</p>

CC BY-SA 4.0
2023-03-07T14:19:50.367Z
Thanks for your reply. I used to think that the change is sent to the origin address because the change address was not displayed in the transaction of the early version of bitcoin core.
Well, there are more and more lost bitcoins. The price must go up. Keep your private keys and wallet.dat safe, make backups, don't do it like me.
Sinister
CC BY-SA 4.0
2023-03-06T09:34:22.560Z
2023-03-06T09:34:22.560Z
Greg Tonoski
<p>Bitcoin Core v.23 import private key question</p>
<p>Hello.
I have a private key which I have imported (importprivkey in console) into bitcoin core v.0.17.1. Balance for example 1 bitcoin</p>
<ol>
<li><p>Made a transaction of 0.1 bitcoin to a P2PKH address. The rest is 0.9 bitcoins.</p>
</li>
<li><p>Removed bitcoin core v.0.17.1 and wallet.dat</p>
</li>
<li><p>Installed bitcoin core v.23.0</p>
</li>
<li><p>Imported the private key. Balance 0 bitcoins.</p>
</li>
<li><p>There are 2 transactions:</p>
<p>0.1 bitcoin (transaction)</p>
<p>0.9 bitcoin (I think this is change, sent to bech32 starting bc1...)</p>
</li>
</ol>
<p>Do I understand correctly that I lost my bitcoins, which were sent as change to the bech32 address, or bech32 addresses are generated from one private key and the change went to that address? Is it possible to restore them?</p>

CC BY-SA 4.0
2023-03-06T09:52:28.477Z
When you "removed" wallet.dat did you remove it to a safe place or did you delete it before testing the new wallet? Did you make backups of important data on your pc in case of theft or fire?
RedGrittyBrick
<bitcoin-core><lost-bitcoins><private-key-import>
Bitcoin Core v.23 import private key question
Sinister
# Bitcoin Core v.23 import private key question

(Asked by: username_0 on 2023-03-05)

Bitcoin Core v.23 import private key question

Hello.
I have a private key which I have imported (importprivkey in console) into bitcoin core v.0.17.1. Balance for example 1 bitcoin

1. Made a transaction of 0.1 bitcoin to a P2PKH address. The rest is 0.9 bitcoins.
2. Removed bitcoin core v.0.17.1 and wallet.dat
3. Installed bitcoin core v.23.0
4. Imported the private key. Balance 0 bitcoins.
5. There are 2 transactions:

   0.1 bitcoin (transaction)

   0.9 bitcoin (I think this is change, sent to bech32 starting bc1...)

Do I understand correctly that I lost my bitcoins, which were sent as change to the bech32 address, or bech32 addresses are generated from one private key and the change went to that address? Is it possible to restore them?

**Tags:** bitcoin-core, lost-bitcoins, private-key-import

> **Comments:**
> **username_1**: When you "removed" wallet.dat did you remove it to a safe place or did you delete it before testing the new wallet? Did you make backups of important data on your pc in case of theft or fire?  

---

## 1 answers

### Answer by username_2 on 2023-03-06. Score: 0 | Accepted answer

Unfortunately, yes - the control over the 0.9 btc has been lost most probably. It seems that the private key to the change 0.9 btc address has been lost by the deletion of the wallet.dat that stored it. It is practically impossible to restore the private key. A change private key is not derived (deterministacally generated) from an imported private key according to "https://bitcointalk.org/index.php?topic=5190841.0". It can be verified (by reproducing the scenario in Testnet). Data recovery may come to rescue - the wallet.dat may have not been deleted unrecoverably altough it's a long shot.

The design of Bitcoin Core seems to trade off safety of funds (risk of loss) against pseudoanonimity-by-defalult in that case. It's a known issue.

> **Comments:**
> **username_0**: Thanks for your reply. I used to think that the change is sent to the origin address because the change address was not displayed in the transaction of the early version of bitcoin core. Well, there are more and more lost bitcoins. The price must go up. Keep your private keys and wallet.dat safe, make backups, don't do it like me.  

---

