A very simple demo of deploying and interacting with an Ethereum contract, through Solidity w/ Hardhat.
This demo uses the Rinkeby Test Network.
Get fake Eth🤑 at rinkebyfaucet
- A MetaMask wallet.
- An Alchemy account.
- .env variables:
- PRIVATE_KEY = your-metamask-private-key.
- API_URL_KEY = your-alchemy-app-url.
- API_KEY = your-alchemy-app-key.
- CONTRACT_ADDRESS = address-returned-after-deploying.
npm install
- installs hardhart, hardhat-ethers & dotenv.
npm run deploy
- deploy contract.npm run interact
- update contract.