Skill 7.3.1
Run a local development node
Key Concepts
npx hardhat node starts Hardhat Network as a standalone JSON-RPC server on http://127.0.0.1:8545 (HTTP and WebSocket). It uses chain ID 31337 and prints 20 accounts, each funded with 10,000 ETH, with their private keys. Wallets, web3.js scripts and Hardhat tasks with --network localhost connect to it. Hardhat tests do not need it: they use an in-process network created for each run.
Anvil, part of Foundry, provides a similar local node, also on port 8545 with chain ID 31337 and pre-funded accounts. Geth in developer mode (geth --dev --http) runs a single-node private chain with one pre-funded developer account, useful for testing against a real client. Ganache, the local node used in most older material, is retired.