importpubkey

Input(s) 3

The importpubkey command adds a public key, provided in hex format, to the wallet for monitoring purposes only; it cannot be used for spending. After import, a new wallet backup is necessary.

How is this used?

This command is useful when users want to monitor a specific public key within their wallet without enabling its use for spending. It allows for tracking transactions associated with the public key. Users can assign labels to organize imported public keys and choose whether to perform a rescan to synchronize the wallet with the blockchain. This command is particularly helpful for managing multiple public keys within the wallet and keeping track of their associated transactions.

Request

method

importpubkey

pubkey

Required

label

Optional

rescan

Optional

Inputs(3)

one required input remaining...

pubkey (required) - The hex-encoded public key
label An optional label
rescan Rescan the wallet for transactions

Result