Function Ledger.utxos

Expose an object that interacts with the UTXO set

UTXOCache utxos() pure nothrow @nogc return @safe;

The UTXO set is the main output of the consensus protocol: it contains all outstanding balances in the network, and as a consequence may be large. Consequently, the returned UTXOCache allows to interact with it in an efficient manner, for example allowing to iterate over the whole set without allocating it as an array.

Returns

An object implementing the UTXOCache interface