The node-best-block-timestamp
command in Mintlayer is utilized to return the timestamp of the current best block in the blockchain. This command provides the time at which the most recent block was added to the blockchain, offering a temporal perspective on the blockchain's progress.
node-best-block-timestamp
-h, --help
: Displays help information about the node-best-block-timestamp
command.Retrieving the Best Block Timestamp:
To get the timestamp of the best block, run the command:
node-best-block-timestamp
The command will return the timestamp of the best block in Unix epoch time, followed by the human-readable date and time, for example:
1705776014 (2024-01-20 18:40:14)
This output represents the time at which the most recent block was added to the Mintlayer blockchain.