Forrest logo
back to the hsd-cli tool

hsd-cli:tldr:65c2c

hsd-cli: Reset the chain to the specified block.
$ hsd-cli reset ${height_or_hash}
try on your machine

The command "hsd-cli reset ${height_or_hash}" is used to reset or reorganize the blockchain to a given block height or hash in the Handshake (HNS) daemon.

Here's a breakdown of the command:

  • "hsd-cli": It refers to the command-line interface (CLI) of the Handshake daemon (hsd). The Handshake daemon is responsible for connecting to and interacting with the Handshake network.
  • "reset": This keyword specifies that you want to reset or reorganize the blockchain.
  • "${height_or_hash}": This is a placeholder for either a block height or a block hash. You need to replace "${height_or_hash}" with the actual block height or hash you want to reset the blockchain to.

When you run this command, the Handshake daemon will start the process of removing or reorganizing blocks to reach the specified block height or hash. This can be useful in several scenarios, such as resolving a blockchain fork, syncing with a specific point in the chain, or test/reset purposes.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the hsd-cli tool