Set the address book label and purpose for a destination.

Synopsis

Declared in <wallet/wallet.h>

bool
SetAddressBook(
    CTxDestination const& address,
    std::string const& strName,
    std::optional<AddressPurpose> const& purpose);

Return Value

true if the entry was written.

Parameters

Name

Description

address

The destination to update.

strName

The label to assign.

purpose

Optional purpose to record for the address.

Created with MrDocs