[#kernel-CCoinsStats]
= xref:kernel.adoc[kernel]::CCoinsStats
:relfileprefix: ../
:mrdocs:

Aggregate statistics computed over the UTXO set&period;

== Synopsis

Declared in `&lt;kernel&sol;coinstats&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct CCoinsStats;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:kernel/CCoinsStats/2constructor-04.adoc[`CCoinsStats`]         [.small]#[constructor]#
| Constructors
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:kernel/CCoinsStats/coins_count.adoc[`coins&lowbar;count`] 
| The number of coins contained&period;
| xref:kernel/CCoinsStats/hashBlock.adoc[`hashBlock`] 
| Hash of the block the statistics were computed at&period;
| xref:kernel/CCoinsStats/hashSerialized.adoc[`hashSerialized`] 
| Hash of the serialized UTXO set&period;
| xref:kernel/CCoinsStats/index_used.adoc[`index&lowbar;used`] 
| Signals if the coinstatsindex was used to retrieve the statistics&period;
| xref:kernel/CCoinsStats/nBogoSize.adoc[`nBogoSize`] 
| Serialization&hyphen;agnostic size measure of the UTXO set&period;
| xref:kernel/CCoinsStats/nDiskSize.adoc[`nDiskSize`] 
| Size of the UTXO set on disk in bytes&period;
| xref:kernel/CCoinsStats/nHeight.adoc[`nHeight`] 
| Block height the statistics were computed at&period;
| xref:kernel/CCoinsStats/nTransactionOutputs.adoc[`nTransactionOutputs`] 
| Number of unspent transaction outputs&period;
| xref:kernel/CCoinsStats/nTransactions.adoc[`nTransactions`] 
| Number of transactions with unspent outputs&period;
| xref:kernel/CCoinsStats/total_amount.adoc[`total&lowbar;amount`] 
| The total amount, or nullopt if an overflow occurred calculating it
| xref:kernel/CCoinsStats/total_coinbase_amount.adoc[`total&lowbar;coinbase&lowbar;amount`] 
| Total cumulative amount of coinbase outputs up to and including this block
| xref:kernel/CCoinsStats/total_new_outputs_ex_coinbase_amount.adoc[`total&lowbar;new&lowbar;outputs&lowbar;ex&lowbar;coinbase&lowbar;amount`] 
| Total cumulative amount of outputs created up to and including this block
| xref:kernel/CCoinsStats/total_prevout_spent_amount.adoc[`total&lowbar;prevout&lowbar;spent&lowbar;amount`] 
| Total cumulative amount of prevouts spent up to and including this block
| xref:kernel/CCoinsStats/total_subsidy.adoc[`total&lowbar;subsidy`] 
| Total cumulative amount of block subsidies up to and including this block
| xref:kernel/CCoinsStats/total_unspendables_bip30.adoc[`total&lowbar;unspendables&lowbar;bip30`] 
| The two unspendable coinbase outputs total amount caused by BIP30
| xref:kernel/CCoinsStats/total_unspendables_genesis_block.adoc[`total&lowbar;unspendables&lowbar;genesis&lowbar;block`] 
| The unspendable coinbase amount from the genesis block
| xref:kernel/CCoinsStats/total_unspendables_scripts.adoc[`total&lowbar;unspendables&lowbar;scripts`] 
| Total cumulative amount of outputs sent to unspendable scripts (OP&lowbar;RETURN for example) up to and including this block
| xref:kernel/CCoinsStats/total_unspendables_unclaimed_rewards.adoc[`total&lowbar;unspendables&lowbar;unclaimed&lowbar;rewards`] 
| Total cumulative amount of coins lost due to unclaimed miner rewards up to and including this block
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:kernel/ComputeUTXOStats.adoc[`ComputeUTXOStats`]
| Computes aggregate statistics over the UTXO set&period;
|===


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