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

Retrieve all the known labels in the address book

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fde05998), requires&lowbar;capability(0x7f95061a86d8), requires&lowbar;capability(0x7f94f2b791e8), requires&lowbar;capability(0x7f94f0cf7e78), requires&lowbar;capability(0x7f94fee3a868)&rsqb;&rsqb;
std::set&lt;std::string&gt;
ListAddrBookLabels(std::optional&lt;AddressPurpose&gt; purpose) const;
----

== Return Value

The set of known labels&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *purpose*
| Optional purpose to restrict which labels are returned&period;
|===


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