[#wallet-CAddressBookData]
= xref:wallet.adoc[wallet]::CAddressBookData
:relfileprefix: ../
:mrdocs:

Address book data&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct CAddressBookData;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CAddressBookData/GetLabel.adoc[`GetLabel`] 
| Return the address label, or an empty string if unset&period;
| xref:wallet/CAddressBookData/IsChange.adoc[`IsChange`] 
| Accessor methods&period;
| xref:wallet/CAddressBookData/SetLabel.adoc[`SetLabel`] 
| Set the address label&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CAddressBookData/label.adoc[`label`] 
| Address label which is always nullopt for change addresses&period; For sending and receiving addresses, it will be set to an arbitrary label string provided by the user, or to &quot;&quot;, which is the default label&period; The presence or absence of a label is used to distinguish change addresses from non&hyphen;change addresses by wallet transaction listing and fee bumping code&period;
| xref:wallet/CAddressBookData/previously_spent.adoc[`previously&lowbar;spent`] 
| Whether coins with this address have previously been spent&period; Set when the the wallet avoid&lowbar;reuse option is enabled and this is an IsMine address that has already received funds and spent them&period; This is used during coin selection to increase privacy by not creating different transactions that spend from the same addresses&period;
| xref:wallet/CAddressBookData/purpose.adoc[`purpose`] 
| Address purpose which was originally recorded for payment protocol support but now serves as a cached IsMine value&period; Wallet code should not rely on this field being set&period;
| xref:wallet/CAddressBookData/receive_requests.adoc[`receive&lowbar;requests`] 
| Map containing data about previously generated receive requests requesting funds to be sent to this address&period; Only present for IsMine addresses&period; Map keys are decimal numbers uniquely identifying each request, and map values are serialized RecentRequestEntry objects containing BIP21 URI information including message and amount&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
