Get Started
/Environment Variables
Environment Varables
In the root of the next-app folder there is a .env.example file
Copy this file and create a .env
If using Next JS for frontend, you will need
NEXT_PUBLIC_ALCHEMY_ID=
NEXT_PUBLIC_INFURA_ID=
If using Vite JS for frontend, you will need
VITE_ALCHEMY_ID=
VITE_INFURA_ID=
For hardhat you will need
PRIVATE_KEY=
ETHERSCAN_API_KEY=
Your Private Key can be gotten from your Metamask Wallet
️🚫
Do not share your Private Key with anyone, and be sure not to commit to GitHub or any other git repo. Your Private Key is the permission to use your Public Key Address and everything connected to it.
-
To get a Alchemy API Key
-
To get a Infura API Key