[#AmountFromValue] = AmountFromValue :mrdocs: Validate and return a CAmount from a UniValue number or string. == Synopsis Declared in `<rpc/util.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CAmount.adoc[CAmount] AmountFromValue( xref:UniValue.adoc[UniValue] const& value, int decimals = 8); ---- == Return Value a CAmount if the various checks pass. == Parameters [cols="1,4"] |=== | Name| Description | *value* [in] | UniValue number or string to parse. | *decimals* [in] | Number of significant digits (default: 8). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#