[#btck-BlockTreeEntry-GetPrevious]
= xref:btck.adoc[btck]::xref:btck/BlockTreeEntry.adoc[BlockTreeEntry]::GetPrevious
:relfileprefix: ../../
:mrdocs:

Returns the previous (parent) entry, if any&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;BlockTreeEntry&gt;
GetPrevious() const;
----

== Return Value

The parent entry, or std&colon;&colon;nullopt at the genesis block&period;


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