[#btck_block_get_hash] = btck_block_get_hash :mrdocs: Calculate and return the hash of a block. == Synopsis Declared in `<kernel/bitcoinkernel.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, __nonnull__]] xref:btck_BlockHash-07.adoc[btck_BlockHash]* btck_block_get_hash(xref:btck_Block-04.adoc[btck_Block] const* block); ---- == Return Value The block hash. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *block* [in] | Non‐null. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#