Assuming you already have a private key, there are a few different ways to import it into your Bitcoin wallet. One way is to use the Bitcoin Core client.
The other way is to use a third party wallet like Electrum.
If you’re using Bitcoin Core, you’ll need to find your private keys in the debug console. To do this, open the Bitcoin Core client and click on “Help” at the top menu bar.
Then select “Debug Window” from the drop-down menu. In the Debug Window that opens up, click on the “Console” tab.
In the console, type in the following command: “walletpassphrase [your password] 600”. This will unlock your wallet for 600 seconds so we can import your private key. Next, type in the following command: “dumpprivkey [your Bitcoin address]”. This will return your private key associated with that address.
Finally, type in the following command to import your private key: “importprivkey [your private key]”. That’s it! Your private key has now been imported into your Bitcoin Core wallet.
If you’re using a third party wallet like Electrum, you’ll need to find your private keys in the ‘Electrum console’. To do this, open the Electrum wallet and click on “View” at the top menu bar. Then select “Show Console” from the drop-down menu. In the Electrum console that opens up, type in the following command: “wallet.private_keys()”.
This will return a list of all your private keys associated with that wallet. Finally, type in the following command to import your private key: “wallet.import_privkey([your private key])”. That’s it! Your private key has now been imported into your Electrum wallet.