[#btck_chain_get_height]
= btck&lowbar;chain&lowbar;get&lowbar;height
:mrdocs:

Return the height of the tip of the chain&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;
int32&lowbar;t
btck&lowbar;chain&lowbar;get&lowbar;height(xref:btck_Chain-09.adoc[btck&lowbar;Chain] const* chain);
----

== Return Value

The current height&period;

== Parameters

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


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