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

Read the blockhash of the snapshot base block that was used to construct the chainstate&period;

== Synopsis

Declared in `&lt;node&sol;utxo&lowbar;snapshot&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e40e75210)&rsqb;&rsqb;
std::optional&lt;uint256&gt;
ReadSnapshotBaseBlockhash(xref:fs/path.adoc[fs::path] chaindir);
----

== Return Value

The snapshot base blockhash, or std&colon;&colon;nullopt if it is absent&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chaindir*
| The chainstate directory to read the base blockhash from&period;
|===


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