The node-block-id
command in Mintlayer is used to retrieve the block ID (hash) of a specific block at a given height in the blockchain. This command is useful for pinpointing a particular block in the blockchain based on its height.
node-block-id <HEIGHT>
<HEIGHT>
: The height of the block in the blockchain for which you want to retrieve the block ID.-h, --help
: Displays help information about the node-block-id
command.Retrieving a Block ID by Height:
To find the block ID for a block at height 10, the command would be:
node-block-id 10
Upon execution, it will return the hash of the block at that specific height. For example:
2bf806c2772a1ec33aab08df0efe5d51451a0d40c36cd9bbf09287b5b7e74e6c
This hash represents the unique identifier of the block at height 10 in the Mintlayer blockchain.