"\nReturns statistics about the unspent transaction output set.\n"
"Note this call may take some time.\n",
"Note this call may take some time if you are not using coinstatsindex.\n",
{
{"hash_type",RPCArg::Type::STR,RPCArg::Default{"hash_serialized_2"},"Which UTXO set hash should be calculated. Options: 'hash_serialized_2' (the legacy algorithm), 'muhash', 'none'."},
{"hash_or_height",RPCArg::Type::NUM,RPCArg::Optional::OMITTED,"The block hash or height of the target height (only available with coinstatsindex)","",{"","string or numeric"}},
},
RPCResult{
RPCResult::Type::OBJ,"","",
{
{RPCResult::Type::NUM,"height","The block height (index) of the returned statistics"},
{RPCResult::Type::STR_HEX,"bestblock","The hash of the block at which these statistics are calculated"},
{RPCResult::Type::NUM,"transactions","The number of transactions with unspent outputs"},
{RPCResult::Type::NUM,"txouts","The number of unspent transaction outputs"},
{RPCResult::Type::NUM,"bogosize","A meaningless metric for UTXO set size"},
{RPCResult::Type::NUM,"bogosize","Database-independent, meaningless metric indicating the UTXO set size"},
{RPCResult::Type::STR_HEX,"hash_serialized_2",/* optional */true,"The serialized hash (only present if 'hash_serialized_2' hash_type is chosen)"},
{RPCResult::Type::STR_HEX,"muhash",/* optional */true,"The serialized hash (only present if 'muhash' hash_type is chosen)"},
{RPCResult::Type::NUM,"transactions","The number of transactions with unspent outputs (not available when coinstatsindex is used)"},
{RPCResult::Type::NUM,"disk_size","The estimated size of the chainstate on disk"},
{RPCResult::Type::STR_AMOUNT,"total_amount","The total amount of coins in the UTXO set"},