https://github.com/marttp/20210606-ethereum-hardhat-tutorial
https://github.com/marttp/20210606-ethereum-hardhat-tutorial
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marttp/20210606-ethereum-hardhat-tutorial
- Owner: marttp
- Created: 2021-06-05T19:30:27.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-05T19:30:51.000Z (about 5 years ago)
- Last Synced: 2025-07-14T14:08:56.389Z (11 months ago)
- Language: JavaScript
- Size: 485 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Full Stack Ethereum Blockchain Application
## Instruction
- npx create-react-app react-dapp
- npm install ethers hardhat @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers
- npx hardhat
### Compile the ABI (Application Binary Interface)
- npx hardhat compile
### Deploy and Use a Local Network / Blockchain
- npx hardhat node
- npx hardhat run scripts/deploy.js --network localhost
### MetaMask Localhost
- MetaMask -> Localhost
- Import Account with Private Key
### Deploy and Use a Live Test Network (Ropsten)
- MetaMask -> Robsten network
- Get Test faucet [this link](https://faucet.ropsten.be/) (Put MetaMask address)
- Use [Infura](https://infura.io/) to create an app
- Get endpoint to use in hardhat.config.js
- set env private key
- npx hardhat run scripts/deploy.js --network ropsten
### Create example Token
- create Token.sol
- npx hardhat compile
### How to Build An ERC20 Token
The ERC20 Token Standard defines a set of rules that apply to all ERC20 tokens which allow them to easily interact with each other
- install OpenZepplin
- npm install @openzeppelin/contracts
- create token by extending (or inheriting from) the ERC20 contract