You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/src/templates/default/hardhat/ts/mocha-ethers/README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,19 @@ npx hardhat test solidity
38
38
npx hardhat test mocha
39
39
```
40
40
41
+
### Launch a local Hardhat node
42
+
43
+
To start a local Hardhat network node (an in-process Ethereum simulator), run:
44
+
45
+
```sh
46
+
npx hardhat node
47
+
```
48
+
49
+
This will launch a JSON-RPC server locally at `http://127.0.0.1:8545` with unlocked test accounts and pre-funded balances. Your contracts can be deployed and tested against this running network by configuring your scripts or commands to use the local endpoint.
50
+
51
+
In a separate terminal, you can then deploy or test against the local node by specifying the `--network localhost` option if needed:
Copy file name to clipboardExpand all lines: cli/src/templates/default/hardhat/ts/node-runner-viem/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,18 @@ npx hardhat test solidity
38
38
npx hardhat test nodejs
39
39
```
40
40
41
+
### Launch a local Hardhat node
42
+
43
+
To start a local Hardhat network node (an in-process Ethereum simulator), run:
44
+
45
+
```sh
46
+
npx hardhat node
47
+
```
48
+
49
+
This will launch a JSON-RPC server locally at `http://127.0.0.1:8545` with unlocked test accounts and pre-funded balances. Your contracts can be deployed and tested against this running network by configuring your scripts or commands to use the local endpoint.
50
+
51
+
In a separate terminal, you can then deploy or test against the local node by specifying the `--network localhost` option if needed:
0 commit comments