The node-chainstate-info
command in Mintlayer is utilized to return information about the current state of the node's blockchain. This command provides key details such as the best block height, block ID, timestamps, and the status of the initial block download.
node-chainstate-info
-h, --help
: Displays help information about the node-chainstate-info
command.Getting Chain State Information:
To view the current chain state information of your node, run:
node-chainstate-info
The output will display various details, for example:
ChainInfo {
best_block_height: BlockHeight(126821),
best_block_id: Id<GenBlock>{0x1bb06467d0f65dbe899341c4292efa18d6e2405693c9f4228d6679f7ec570ac5},
best_block_timestamp: BlockTimestamp { timestamp: 1705775607 },
median_time: BlockTimestamp { timestamp: 1705775391 },
is_initial_block_download: false,
}
This information includes the height and ID of the best block, its timestamp, the median time of recent blocks, and whether the node is still downloading initial blocks.