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

Parse an address purpose from its serialized string form&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;AddressPurpose&gt;
PurposeFromString(std::string&lowbar;view s);
----

== Return Value

The parsed purpose, or nullopt if unrecognized&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| The string name to parse&period;
|===


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