[#btck_chainstate_manager_create] = btck_chainstate_manager_create :mrdocs: Create a chainstate manager. This is the main object for many validation tasks as well as for retrieving data from the chain and interacting with its chainstate and indexes. == Synopsis Declared in `<kernel/bitcoinkernel.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, __nonnull__]] xref:btck_ChainstateManager-0e.adoc[btck_ChainstateManager]* btck_chainstate_manager_create(xref:btck_ChainstateManagerOptions-08.adoc[btck_ChainstateManagerOptions] const* chainstate_manager_options); ---- == Return Value The allocated chainstate manager, or null on error. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *chainstate_manager_options* [in] | Non‐null, created by xref:btck_chainstate_manager_options_create.adoc[`btck_chainstate_manager_options_create`]. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#