How do I import the private key for a public address?

algorithm

Scrypt (PoS)

source branch

13.2

updated June 9, 2023, 7:42 am

Import the private key for an address with the following instructions.

Open your wallet.

Go to Help -> Debug Window.
Click on the tab Console.
This is the console where you execute RPC commands.

Type the following RPC command, to import your private key:

importprivkey privatekey

Replace the text “privatekey” with a private key that your want to import in your wallet.

Example:

importprivkey VZt9WMWuJF5zbTCJSuX9cwZdtuMzPhz7EkAZUFBxsvak33wg8Kvr