[#btck_context_create] = btck_context_create :mrdocs: Create a new kernel context. If the options have not been previously set, their corresponding fields will be initialized to default values; the context will assume mainnet chain parameters and won't attempt to call the kernel notification callbacks. == Synopsis Declared in `<kernel/bitcoinkernel.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:btck_Context-07.adoc[btck_Context]* btck_context_create(xref:btck_ContextOptions-0d.adoc[btck_ContextOptions] const* context_options); ---- == Return Value The allocated context, 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 | *context_options* [in] | Nullable, created by xref:btck_context_options_create.adoc[`btck_context_options_create`]. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#