btck_block_get_hash

Calculate and return the hash of a block.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard, __nonnull__]]
btck_BlockHash*
btck_block_get_hash(btck_Block const* block);

Return Value

The block hash.

NOTE

The return value should not be discarded.

Parameters

NameDescription
block [in]Non-null.