Skip to content

chainstateinfo Command Guide

Enrico Rubboli edited this page Sep 4, 2023 · 1 revision

The chainstateinfo command provides information about the current state of the node's blockchain in Mintlayer.

Usage

To retrieve the node's chain state, use the following command:

chainstateinfo

Output

When you run the chainstateinfo command, you'll receive an output similar to:

ChainInfo {
    best_block_height: BlockHeight(
        28507,
    ),
    best_block_id: Id<GenBlock>{0x76c0c6eb8bf382db8336588cdf5adf4ad178cec456959ea28e003100be8affea},
    best_block_timestamp: BlockTimestamp {
        timestamp: 1693830819,
    },
    median_time: BlockTimestamp {
        timestamp: 1693830219,
    },
    is_initial_block_download: false,
}

Interpretation

  • best_block_height: The height of the most recent block in the blockchain.
  • best_block_id: The unique identifier of the most recent block.
  • best_block_timestamp: The timestamp of when the most recent block was added.
  • median_time: The median timestamp of the recent blocks.
  • is_initial_block_download: Indicates whether the node is in the process of downloading the initial blocks.

Options

  • -h, --help: Displays the help message for the chainstateinfo command.
Clone this wiki locally