Skip to main content

btck_context_create

Function btck_context_create 

Source
pub unsafe extern "C" fn btck_context_create(
    context_options: *const btck_ContextOptions,
) -> *mut btck_Context
Expand description

@brief 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.

@param[in] context_options Nullable, created by @ref btck_context_options_create. @return The allocated context, or null on error.