Skip to contents

Adds an address (without a private key) to the node's wallet for monitoring. The node will be able to see transactions involving this address, but cannot spend funds from it.

Usage

mc_import_address(conn, address, label = "", rescan = TRUE)

Arguments

conn

A connection object created by mc_connect.

address

Character string. The wallet address to import.

label

Character string (optional). A label to assign to the address. Default is "" (no label).

rescan

Logical. If TRUE (default), the node will scan the blockchain for transactions associated with this address.

Value

Invisibly returns the RPC result (typically NULL) on success; throws an error if the import fails.

Examples

if (FALSE) { # \dontrun{
mc_import_address(conn, "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
                  label = "donation", rescan = TRUE)
} # }