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

Get the nBits difficulty target from btck&lowbar;BlockHeader&period;

== Synopsis

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

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

== Return Value

Difficulty target (compact format)

== Parameters

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


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