importprivkey
#
CommandAdds a private key (as returned by dumpprivkey) to your wallet. Requires a new wallet backup. Hint: use importmulti to import more than one private key.
#
Argumentsprivkey
*#
(string, required)
The private key (see dumpprivkey)
label
#
(string, optional, default="")
An optional label
rescan
#
(boolean, optional, default=true)
Rescan the wallet for transactions
#
ExamplesNote: This call can take over an hour to complete if rescan is true, during that time, other rpc calls
may report that the imported key exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.
Dump a private key
Import the private key with rescan
Import using a label and without rescan
Import using default blank label and without rescan
As a JSON-RPC call
Running following help command
Will produce following output: