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

CRTP mixin adding block&hyphen;header accessors shared by the view and owning types&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Derived&gt;
class BlockHeaderApi;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/BlockHeaderApi-03/Bits.adoc[`Bits`] 
| Returns the compact difficulty target&period;
| xref:btck/BlockHeaderApi-03/Hash.adoc[`Hash`] 
| Returns the hash of this header&apos;s block&period;
| xref:btck/BlockHeaderApi-03/Nonce.adoc[`Nonce`] 
| Returns the proof&hyphen;of&hyphen;work nonce&period;
| xref:btck/BlockHeaderApi-03/PrevHash.adoc[`PrevHash`] 
| Returns the hash of the previous block&period;
| xref:btck/BlockHeaderApi-03/Timestamp.adoc[`Timestamp`] 
| Returns the header timestamp&period;
| xref:btck/BlockHeaderApi-03/ToBytes.adoc[`ToBytes`] 
| Serializes the header to its 80&hyphen;byte form&period;
| xref:btck/BlockHeaderApi-03/Version.adoc[`Version`] 
| Returns the block version&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `Derived`
| 
|===

== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:btck/BlockHeader.adoc[`BlockHeader`] 
| Owning wrapper over a `btck&lowbar;BlockHeader`&period;
| xref:btck/BlockHeaderView.adoc[`BlockHeaderView`] 
| Non&hyphen;owning view over a `btck&lowbar;BlockHeader`&period;
|===


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