node best-block
Legacy spelling: this command was previously spelled
node-best-block,node-best-block-id,node-best-block-height, ornode-best-block-timestamp. All spellings work, but only the nested spelling shown here appears inhelpand tab completion (v1.4.5+).
Returns the best block known to the node: its id, height, and timestamp. Pass one or more flags to show a subset; without flags, everything is shown.
Usage
node best-block [--id] [--height] [--timestamp]
Options
--id: Show the best block id.--height: Show the best block height.--timestamp: Show the best block timestamp.
Examples
node best-block --id
node best-block --height
node best-block --timestamp
Related
node block-id: Get the block id at a specific height.node block: Get a block by its id.node chainstate-info: Returns the node's chainstate information.