importprivkey

Input(s) 3

The importprivkey command adds a private key, obtained using the dumpprivkey command, to the wallet. It enables access to funds associated with the imported private key. A new wallet backup is required after importing a private key.

How is this used?

This command is essential for users who want to access funds associated with private keys outside of their wallet. It allows users to import private keys into the wallet, enabling them to spend or manage the associated funds directly within the wallet environment. Users can specify labels to organize imported private keys and choose whether to trigger a blockchain rescan to synchronize wallet transactions with the imported private key. This command is commonly used when users want to consolidate funds from multiple sources or manage cold storage addresses within their wallet.

Request

method

importprivkey

privkey

Required

label

Required

rescan

Optional

Inputs(3)

two required input remaining...

privkey (required) - The private key
label (required) - An optional label
rescan Rescan the wallet for transactions

Result