[#btck_chain_contains]
= btck&lowbar;chain&lowbar;contains
:mrdocs:

Return true if the passed in chain contains the block tree entry&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;
int
btck&lowbar;chain&lowbar;contains(
    xref:btck_Chain-09.adoc[btck&lowbar;Chain] const* chain,
    xref:btck_BlockTreeEntry-0c.adoc[btck&lowbar;BlockTreeEntry] const* block&lowbar;tree&lowbar;entry);
----

== Return Value

1 if the block&lowbar;tree&lowbar;entry is in the chain, 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chain* [in]
| Non&hyphen;null&period;
| *block&lowbar;tree&lowbar;entry* [in]
| Non&hyphen;null&period;
|===


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