Get the btck_BlockHeader from the block.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard, __nonnull__]]
btck_BlockHeader*
btck_block_get_header(btck_Block const* block);

Description

Creates a new btck_BlockHeader object from the block's header data.

Return Value

btck_BlockHeader.

Note

The return value should not be discarded.

Parameters

Name

Description

block [in]

Non‐null btck_Block

Created with MrDocs