ValueFromAmount

Convert an amount in satoshis into a JSON value denominated in whole coins.

Synopsis

Declared in <core_io.h>

UniValue
ValueFromAmount(CAmount amount);

Return Value

A UniValue holding the amount formatted in coins.

Parameters

NameDescription
amountAmount in satoshis.