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

Convert an address purpose to its serialized string form&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
PurposeToString(xref:wallet/AddressPurpose.adoc[AddressPurpose] p);
----

== Return Value

The string name of the purpose&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| The address purpose to convert&period;
|===


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