snippetbashTip
hardhat — A development environment for Ethereum software. More information: <https://hardhat.org/hardhat-runn
Viewed 0 times
commandsoftwaredevelopmenthardhatclienvironmentethereumfor
Problem
How to use the
hardhat command: A development environment for Ethereum software. More information: <https://hardhat.org/hardhat-runner/docs/getting-started#quick-start>.Solution
hardhat — A development environment for Ethereum software. More information: <https://hardhat.org/hardhat-runner/docs/getting-started#quick-start>.List available subcommands (or create a new project if no configuration exists):
hardhatCompile the current project and build all artifacts:
hardhat compileRun a user-defined script after compiling the project:
hardhat run {{path/to/script.js}}Run Mocha tests:
hardhat testRun all given test files:
hardhat test {{path/to/file1.js path/to/file2.js ...}}Start a local Ethereum JSON-RPC node for development:
hardhat nodeStart a local Ethereum JSON-RPC node with a specific hostname and port:
hardhat node --hostname {{hostname}} --port {{port}}Clean the cache and all artifacts:
hardhat cleanCode Snippets
List available subcommands (or create a new project if no configuration exists)
hardhatCompile the current project and build all artifacts
hardhat compileRun a user-defined script after compiling the project
hardhat run {{path/to/script.js}}Run Mocha tests
hardhat testRun all given test files
hardhat test {{path/to/file1.js path/to/file2.js ...}}Context
tldr-pages: common/hardhat
Revisions (0)
No revisions yet.