[#ValueFromAmount]
= ValueFromAmount
:mrdocs:

Convert an amount in satoshis into a JSON value denominated in whole coins&period;

== Synopsis

Declared in `&lt;core&lowbar;io&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
ValueFromAmount(xref:CAmount.adoc[CAmount] amount);
----

== Return Value

A UniValue holding the amount formatted in coins&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *amount*
| Amount in satoshis&period;
|===


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