mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nprimo
4fa5c876a7
|
1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago |
README.md
Local Node
An Ethereum node provides different functionalities :
- To be connected to other nodes and exchange blocks and transactions
- To verify each transaction by running the Ethereum Virtual Machine
- To provide an API to interact with the node
- To provide a basic wallet to sign transactions and collect fees when mining
For now you will simply learn to launch a local node.
Instructions
Launch a local test node. You can use any client (geth, openEthereum...), but I recommend javascript test nodes hardhat
and ganache-cli
.
hardhat node
npm i hardhat
npx hardhat node
ganache
npm i ganache-cli
npx ganache-cli
You can also use ganache ("non cli") that provides a nice graphical interface. For compatibility, change the listening port to 8545 in the settings
Noticeably, local javascript nodes are not connected to any network and provide already 10 account populated with test ether.
There is no code to submit for this exercise. Submit an empty file.