[#btck_chainstate_manager_get_block_tree_entry_by_hash]
= btck&lowbar;chainstate&lowbar;manager&lowbar;get&lowbar;block&lowbar;tree&lowbar;entry&lowbar;by&lowbar;hash
:mrdocs:

Retrieve a block tree entry by its block hash&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;
xref:btck_BlockTreeEntry-0c.adoc[btck&lowbar;BlockTreeEntry] const*
btck&lowbar;chainstate&lowbar;manager&lowbar;get&lowbar;block&lowbar;tree&lowbar;entry&lowbar;by&lowbar;hash(
    xref:btck_ChainstateManager-0e.adoc[btck&lowbar;ChainstateManager] const* chainstate&lowbar;manager,
    xref:btck_BlockHash-07.adoc[btck&lowbar;BlockHash] const* block&lowbar;hash);
----

== Return Value

The block tree entry of the block with the passed in hash, or null if the block hash is not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainstate&lowbar;manager* [in]
| Non&hyphen;null&period;
| *block&lowbar;hash* [in]
| Non&hyphen;null&period;
|===


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