btck_context_create

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>

[[nodiscard]]
btck_Context*
btck_context_create(btck_ContextOptions const* context_options);

Return Value

The allocated context, or null on error.

NOTE

The return value should not be discarded.

Parameters

NameDescription
context_options [in]Nullable, created by btck_context_options_create.