[#btck_block_header_to_bytes] = btck_block_header_to_bytes :mrdocs: Serializes the btck_BlockHeader to bytes. This is consensus serialization that is also used for the P2P network. == Synopsis Declared in `<kernel/bitcoinkernel.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, __nonnull__]] int btck_block_header_to_bytes( xref:btck_BlockHeader-00.adoc[btck_BlockHeader] const* header, unsigned char output[]); ---- == Return Value 0 on success. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *header* [in] | Non‐null. | *output* [out] | The serialized block header (80 bytes). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#