[#btck_block_get_header]
= btck&lowbar;block&lowbar;get&lowbar;header
:mrdocs:

Get the btck&lowbar;BlockHeader from the block&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_BlockHeader-00.adoc[btck&lowbar;BlockHeader]*
btck&lowbar;block&lowbar;get&lowbar;header(xref:btck_Block-04.adoc[btck&lowbar;Block] const* block);
----

== Description

Creates a new btck&lowbar;BlockHeader object from the block&apos;s header data&period;

== Return Value

btck&lowbar;BlockHeader&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *block* [in]
| Non&hyphen;null btck&lowbar;Block
|===


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