[#btck-BlockHeaderView]
= xref:btck.adoc[btck]::BlockHeaderView
:relfileprefix: ../
:mrdocs:

Non&hyphen;owning view over a `btck&lowbar;BlockHeader`&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class BlockHeaderView
    : public xref:btck/View-041.adoc[View&lt;btck&lowbar;BlockHeader&gt;]
    , public xref:btck/BlockHeaderApi-03.adoc[BlockHeaderApi&lt;BlockHeaderView&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/View-041.adoc[View&lt;btck&lowbar;BlockHeader&gt;]`
| Non&hyphen;owning view over a const C handle of type `CType&period;`
| `xref:btck/BlockHeaderApi-03.adoc[BlockHeaderApi&lt;BlockHeaderView&gt;]`
| CRTP mixin adding block&hyphen;header accessors shared by the view and owning types&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/BlockHeaderView/2constructor.adoc[`BlockHeaderView`]         [.small]#[constructor]#
| Constructs a view over `ptr&period;`
| xref:btck/BlockHeaderView/Bits.adoc[`Bits`] 
| Returns the compact difficulty target&period;
| xref:btck/BlockHeaderView/Hash.adoc[`Hash`] 
| Returns the hash of this header&apos;s block&period;
| xref:btck/BlockHeaderView/Nonce.adoc[`Nonce`] 
| Returns the proof&hyphen;of&hyphen;work nonce&period;
| xref:btck/BlockHeaderView/PrevHash.adoc[`PrevHash`] 
| Returns the hash of the previous block&period;
| xref:btck/BlockHeaderView/Timestamp.adoc[`Timestamp`] 
| Returns the header timestamp&period;
| xref:btck/BlockHeaderView/ToBytes.adoc[`ToBytes`] 
| Serializes the header to its 80&hyphen;byte form&period;
| xref:btck/BlockHeaderView/Version.adoc[`Version`] 
| Returns the block version&period;
| xref:btck/BlockHeaderView/get.adoc[`get`] 
| Returns the borrowed C handle&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:btck/BlockHeaderView/m_ptr.adoc[`m&lowbar;ptr`] 
| The borrowed C handle&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
