The block for which the last blockTip notification was received. It's first set when the tip is connected during node initialization. Might be unset during an early shutdown.

Synopsis

Declared in <node/kernel_notifications.h>

[[requires_capability(0x7f2e33c637b8)]]
std::optional<uint256>
TipBlock();

Return Value

The current tip block hash, or std::nullopt if it has not been set.

Created with MrDocs