Skip to content

NLinkova/ether-hello-world

Repository files navigation

hello-world

This is my first projects on Ethereum. Thanks to: YouTube Playlist

Tech

  • Ethereum smart contracts
  • hardhat
  • ethers
  • Alchemy Provider
  • Goerli - network

Setup

You can clone this repo and get going right away.

Just make sure to:

  • run npm install to set up all the dependencies (hardhat, ethers, etc.)
  • rename .env-example to .env and then fill in the environment variables with your own info
  • set up an Alchemy account here
  • set up a Metamask wallet with fake testnet ether

And then you should be able to:

  • run npx hardhat run scripts/deploy.js to deploy the contract to the Ropsten testnet
  • run npx hardhat run scripts/interact.js to read and write a new message to the smart contract on Ropsten
  • run npx hardhat verify --network goerli <your deployment address> 'Hello World!' to verify your contract on Etherscan

Deployed message

Ethereum scan verified

Updated via Ethereum Scan