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.
Declared in <kernel/bitcoinkernel.h>
[[nodiscard]]
btck_Context*
btck_context_create(btck_ContextOptions const* context_options);
The allocated context, or null on error.
The return value should not be discarded.
| Name | Description |
|---|---|
| context_options [in] | Nullable, created by btck_context_options_create. |