[#interfaces-BlockRef]
= xref:interfaces.adoc[interfaces]::BlockRef
:relfileprefix: ../
:mrdocs:

A lightweight reference to a block by hash and height&period;

== Synopsis

Declared in `&lt;interfaces&sol;types&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct BlockRef;
----

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:node/GetTip.adoc[`&colon;&colon;node&colon;&colon;GetTip`]
| Return the hash and height of the active chain tip&period;
| xref:node/WaitTipChanged.adoc[`&colon;&colon;node&colon;&colon;WaitTipChanged`]
| Waits for the connected tip to change until timeout has elapsed&period; During node initialization, this will wait until the tip is connected (regardless of `timeout`)&period; Returns the current tip, or nullopt if the node is shutting down or interrupt() is called&period;
|===


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