[#node-GetTip]
= xref:node.adoc[node]::GetTip
:relfileprefix: ../
:mrdocs:

Return the hash and height of the active chain tip&period;

== Synopsis

Declared in `&lt;node&sol;miner&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;interfaces::BlockRef&gt;
GetTip(xref:ChainstateManager.adoc[ChainstateManager]& chainman);
----

== Return Value

The active tip reference, or std&colon;&colon;nullopt if there is no active chain&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainman*
| The chainstate manager to query&period;
|===


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