Post
Topic
Board Bitcoin Technical Support
Merits 8 from 2 users
Re: My old bitcoin wallet
by
RickDeckard
on 05/04/2023, 21:31:21 UTC
⭐ Merited by hugeblack (5) ,vapourminer (3)
Did you import the address or the private key? If you imported the address it could be the first 5 Bitcoin payment was made to your public key.
If you imported the private key: does it show the correct address?
I have imported the address and re- synced the wallet. I did not want to import the pvirkey after i saw that the balance does not match, tho the wallet address is correct. I did not import my privkey as i have heard some stories that people lost their bitcoins just because of stupid mistakes they did. So i have to export the public key out of my privkey?
Like Loyce mentioned, if you're unsure about importing the private key you should do it offline and in a verified and authentic version of Bitcoin Core. First I would suggest that you check if the installer that you got was from the official Bitcoin Core website[1] which is also linked in the News section of the forum. Afterwards, even if you got it from the previous website, you should verify it by following the procedures applicable to your OS that can be found here[2].

Afterwards I believe you can use the command "importprivkey"[3] in the Console window within Bitcoin Core which can be asseced by:

  • With the Bitcoin Core program open go to Window;
  • Select "Console";
  • Run the following command importprivkey <bitcoinprivkey> ;
  • Click "Enter";

If by any chance you get the following message - Rescan is disabled when blocks are pruned (code -4) - you can use the following code to avoid scanning the blockchain for transactions related to the key that you've just imported (and thus avoiding the previous error):
Code:
importprivkey "<key>" "" false

[1]https://bitcoincore.org/
[2]https://bitcoincore.org/en/download/
[3]https://developer.bitcoin.org/reference/rpc/importprivkey.html