Forrest logo
back to the hardhat tool

hardhat:tldr:5875a

hardhat: Start a local Ethereum JSON-RPC node with a specific hostname and port.
$ hardhat node --hostname ${hostname} --port ${port}
try on your machine

The command hardhat node is used to run a local Ethereum network using the Hardhat development environment for Ethereum smart contract development.

The --hostname flag is used to specify the hostname or IP address for the node. In this case, ${hostname} is a variable that needs to be replaced with an actual hostname or IP address.

The --port flag is used to specify the port number for the node to listen on. Similarly, ${port} is a variable that needs to be replaced with an actual port number.

Therefore, the command hardhat node --hostname ${hostname} --port ${port} is used to start a local Ethereum node with the specified hostname and port number. Make sure to replace ${hostname} and ${port} with the appropriate values for your specific setup.

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 hardhat tool