[#ParseMoney]
= ParseMoney
:mrdocs:

Parse an amount denoted in full coins&period; E&period;g&period; &quot;0&period;0034&quot; supplied on the command line&period;

== Synopsis

Declared in `&lt;util&sol;moneystr&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;CAmount&gt;
ParseMoney(std::string const& str);
----

== Return Value

The parsed amount in the smallest unit, or std&colon;&colon;nullopt if invalid&period;

== Parameters

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


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