Getting Started
Install Metamask and create an Ethereum account
In order to interact with a smart contract on Ethereum, you will need to install a wallet and initialize an account with some ether in it.
MetaMask, one of the most popular wallet apps, has an extension that can be installed directly into your web browser as well as a mobile app that you can use on iOS and Android. Download MetaMask here and create a new wallet.
Add some Rinkeby ether from a faucet to your account
Once you are finished with setting up your MetaMask account you will see a brand new account with 0 ETH in it ready for you to use. Switch over from the Ethereum mainnet to the Rinkeby testnet by clicking on the network names at the top and selecting Rinkeby
To add some Rinkeby ether to your wallet, you can go to the Rinkeby Faucet and request some Rinkeby ether be added to your account. Note that you might have to verify a non-malicious request for ether by posting on social media.
Initialize a new project
Create a new folder and initialize a new project
Install dependencies
Initialize the Hardhat
Final step in setting up this project: initializing a (blank) Hardhat project:
You're all done! Your project should have 3 files:
hardhat.config.js
is a hardhat configuration file where we can define our blockchain configuration variables such as which network we want to operate on and which accounts to use.package.json
andpackage-lock.json
are npm-created files used to define dependencies we might need
Last updated