wallet::CWallet::SetAddressBook

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

NameDescription
addressThe destination to update.
strNameThe label to assign.
purposeOptional purpose to record for the address.