[#Chainstate-TargetBlock] = xref:Chainstate.adoc[Chainstate]::TargetBlock :relfileprefix: ../ :mrdocs: Return target block which chainstate tip is expected to reach, if this is a historic chainstate being used to validate a snapshot, or null if chainstate targets the most‐work block. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1ba83bd8), requires_capability(0x7f2e14563828), requires_capability(0x7f2e373bc9d8), requires_capability(0x7f2e36e33628)]] xref:CBlockIndex.adoc[CBlockIndex] const* TargetBlock() const; ---- == Return Value The target block index, or nullptr if the chainstate targets the most‐work block. [.small]#Created with https://www.mrdocs.com[MrDocs]#