[#TxoSpenderIndex-2constructor] = xref:TxoSpenderIndex.adoc[TxoSpenderIndex]::TxoSpenderIndex :relfileprefix: ../ :mrdocs: Constructs the index, which becomes available to be queried. == Synopsis Declared in `<index/txospenderindex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit TxoSpenderIndex( std::unique_ptr<interfaces::Chain> chain, size_t n_cache_size, bool f_memory = false, bool f_wipe = false); ---- == Parameters [cols="1,4"] |=== | Name| Description | *chain* | Interface used to query the blockchain. | *n_cache_size* | Size of the database cache, in bytes. | *f_memory* | Keep the database in memory instead of on disk. | *f_wipe* | Erase any existing database before opening. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#