All apps/Hardhat

Hardhat

hardhat

Ethereum development environment.

Runs as hardhat|macOS, Linux, Windows|hardhat.org

Command form

ai-draft · 3 tasks · 7 fields

Compile, test and run a local node. Global options such as --network are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui hardhat

hardhat compile

Compile contracts

Compile the entire project.

Compile contractsExample values, fixed in this page — nothing here reaches a terminal
Basic
Force
--force
Quiet
--quiet
TasksEach one presets the form for one job
Compile
forcequiet
ParametersOnly these flags are editable in the form
Force
Force compilation ignoring cache.
boolean
--force
Quiet
boolean
--quiet

hardhat test

Run tests

Run mocha tests.

Run testsExample values, fixed in this page — nothing here reaches a terminal
Basic
Skip compile
--no-compile
TasksEach one presets the form for one job
Test
no_compile
ParametersOnly these flags are editable in the form
Skip compile
boolean
--no-compile

hardhat node

Start local node

Start a JSON-RPC server on top of Hardhat Network.

Start local nodeExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
Host to bind
string
TasksEach one presets the form for one job
Start node
porthostname
ParametersOnly these flags are editable in the form
Port
Default 8545.
integer
--port
Host to bind
string
--hostname
Fork from URL
string
--fork
Fork block number
integer
--fork-block-number
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed hardhat against its version. A form that does not match your version is not offered.