[#btck-BlockHeader] = xref:btck.adoc[btck]::BlockHeader :relfileprefix: ../ :mrdocs: Owning wrapper over a `btck_BlockHeader`. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class BlockHeader : public xref:btck/Handle-046.adoc[Handle<btck_BlockHeader, btck_block_header_copy, btck_block_header_destroy>] , public xref:btck/BlockHeaderApi-03.adoc[BlockHeaderApi<BlockHeader>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:btck/Handle-046.adoc[Handle<btck_BlockHeader, btck_block_header_copy, btck_block_header_destroy>]` | Owning RAII handle for a copyable C object of type `CType.` | `xref:btck/BlockHeaderApi-03.adoc[BlockHeaderApi<BlockHeader>]` | CRTP mixin adding block‐header accessors shared by the view and owning types. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:btck/BlockHeader/2constructor-09.adoc[`BlockHeader`] [.small]#[constructor]# | Constructors | xref:btck/BlockHeader/operator_assign-07.adoc[`operator=`] | Assignment operators | xref:btck/BlockHeader/Bits.adoc[`Bits`] | Returns the compact difficulty target. | xref:btck/BlockHeader/Hash.adoc[`Hash`] | Returns the hash of this header's block. | xref:btck/BlockHeader/Nonce.adoc[`Nonce`] | Returns the proof‐of‐work nonce. | xref:btck/BlockHeader/PrevHash.adoc[`PrevHash`] | Returns the hash of the previous block. | xref:btck/BlockHeader/Timestamp.adoc[`Timestamp`] | Returns the header timestamp. | xref:btck/BlockHeader/ToBytes.adoc[`ToBytes`] | Serializes the header to its 80‐byte form. | xref:btck/BlockHeader/Version.adoc[`Version`] | Returns the block version. | xref:btck/BlockHeader/get-06.adoc[`get`] | Returns the owned C handle. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:btck/BlockHeader/m_ptr.adoc[`m_ptr`] | The owned C handle. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#