[#btck-BlockHeader-2constructor-09]
= xref:btck.adoc[btck]::xref:btck/BlockHeader.adoc[BlockHeader]::BlockHeader
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Constructs a header by deserializing its 80&hyphen;byte form&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:btck/BlockHeader/2constructor-05.adoc[BlockHeader](std::span&lt;std::byte const&gt; raw&lowbar;header);
----

[.small]#xref:btck/BlockHeader/2constructor-05.adoc[_» more&period;&period;&period;_]#

Constructs an owning copy from a view&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:btck/BlockHeader/2constructor-0a.adoc[BlockHeader](xref:btck/BlockHeaderView.adoc[BlockHeaderView] const& view);
----

[.small]#xref:btck/BlockHeader/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Takes ownership of an existing C block header&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:btck/BlockHeader/2constructor-00.adoc[BlockHeader](xref:btck_BlockHeader-00.adoc[btck&lowbar;BlockHeader]* header);
----

[.small]#xref:btck/BlockHeader/2constructor-00.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *raw&lowbar;header*
| The serialized header bytes&period;
| *view*
| The view to copy&period;
| *header*
| The C handle to own&period;
|===


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