<p>If you have your private key, you can add it to your wallet with the command<br>
<code>bitcoin-cli importprivkey "&lt;YOUR_PRIVATE_KEY&gt;" "" false</code></p>

<p>(The false at the end is to cancel rescan at the moment of adding. It could take some time.) </p>

<p>If you do not have the private key associated with the address the coins were sent to back then, they are lost. </p>

CC BY-SA 3.0
2017-10-19T06:23:17.217Z
No, I don't have private key. I have public key only.
Is there any way I can get my private key from public key?
Thanks
Pratik Shah
CC BY-SA 3.0
2017-10-19T06:48:44.417Z
Unfortunately no. If it was possible, anyone could take anyone's bitcoins. Your only option is to try and salvage information from your formatted hard drive using some recovery software.
amanusk
CC BY-SA 4.0
2021-05-02T05:40:03.310Z
Is there any place where I can check my Private Kay?
Pratik Shah
CC BY-SA 3.0
2017-10-18T06:03:55.890Z
2017-10-18T06:03:55.890Z
amanusk
<p>I have received the bitcoin way back in 2013 in Bitcoin Core.
At that time I don't know about the importance of wallet.dat - I have formatted my hard disk and install Bitcoin Core again in 2017 but there it didn't show my Bitcoin in my balance. I have my Bitcoin Key.</p>

<p>How can I get my bitcoin back? Please help me!</p>

CC BY-SA 3.0
2017-10-18T04:27:09.237Z
Do you mean you have the private key for the address the funds were sent to?
Highly Irregular
CC BY-SA 3.0
2017-10-31T21:23:08.080Z
Your Bitcoins are gone forever  Sorry.
Luke Mlsna
<wallet-recovery><lost-wallet><recover-private-key>
Recovering funds after I lost my wallet.dat
Pratik Shah
# Recovering funds after I lost my wallet.dat

(Asked by: username_0 on 2017-10-18)

I have received the bitcoin way back in 2013 in Bitcoin Core.
At that time I don't know about the importance of wallet.dat - I have formatted my hard disk and install Bitcoin Core again in 2017 but there it didn't show my Bitcoin in my balance. I have my Bitcoin Key.

How can I get my bitcoin back? Please help me!

**Tags:** wallet-recovery, lost-wallet, recover-private-key

> **Comments:**
> **username_1**: Do you mean you have the private key for the address the funds were sent to?  
> **username_2**: Your Bitcoins are gone forever  Sorry.  

---

## 1 answers

### Answer by username_3 on 2017-10-18. Score: 1

If you have your private key, you can add it to your wallet with the command  
`bitcoin-cli importprivkey "<YOUR_PRIVATE_KEY>" "" false`

(The false at the end is to cancel rescan at the moment of adding. It could take some time.)

If you do not have the private key associated with the address the coins were sent to back then, they are lost.

> **Comments:**
> **username_0**: No, I don't have private key. I have public key only. Is there any way I can get my private key from public key? Thanks  
> **username_3**: Unfortunately no. If it was possible, anyone could take anyone's bitcoins. Your only option is to try and salvage information from your formatted hard drive using some recovery software.  
> **username_0**: Is there any place where I can check my Private Kay?  

---

