btck_block_get_header

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

NameDescription
block [in]Non-null btck_Block