[#wallet-CWallet-SetAddressBook] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SetAddressBook :relfileprefix: ../../ :mrdocs: Set the address book label and purpose for a destination. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool SetAddressBook( xref:CTxDestination.adoc[CTxDestination] const& address, std::string const& strName, std::optional<AddressPurpose> const& purpose); ---- == Return Value true if the entry was written. == Parameters [cols="1,4"] |=== | Name| Description | *address* | The destination to update. | *strName* | The label to assign. | *purpose* | Optional purpose to record for the address. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#