[#CDiskBlockIndex-GetBlockHash-01] = xref:CDiskBlockIndex.adoc[CDiskBlockIndex]::GetBlockHash :relfileprefix: ../ :mrdocs: `GetBlockHash` overloads == Synopses Declared in `<chain.h>` Returns the hash of this block. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:uint256.adoc[uint256] xref:CBlockIndex/GetBlockHash.adoc[GetBlockHash]() const; ---- [.small]#xref:CBlockIndex/GetBlockHash.adoc[_» more..._]# Deleted: use ConstructBlockHash(), since the on‐disk entry has no cached hash. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:uint256.adoc[uint256] xref:CDiskBlockIndex/GetBlockHash-0b.adoc[GetBlockHash]() = delete; ---- [.small]#xref:CDiskBlockIndex/GetBlockHash-0b.adoc[_» more..._]# == Return Value The block hash. The block must have an associated hash. [.small]#Created with https://www.mrdocs.com[MrDocs]#