Creates a chain parameters struct with default parameters based on the passed in chain type.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard]]
btck_ChainParameters*
btck_chain_parameters_create(btck_ChainType chain_type);

Return Value

An allocated chain parameters opaque struct.

Note

The return value should not be discarded.

Parameters

Name

Description

chain_type [in]

Controls the chain parameters type created.

Created with MrDocs