a. Goto METAMASK and download & add install it as an extension.
Follow Images below...
Step 1:
Step 2:
d. Goto here and signup or login here!
f. After Signing-up or logging in, Follow These steps: steps then scroll a bit until you don't find interface like this and follow steps given below from here...
g. On Successful Configuration, Your Metamask'll look like this when you're on Alchemy...
h. Now you're all done, You only need some balance, Go here and follow Images given below...
SETUP DONE!
-
GOERLI_JSON_RPC_URL=your-rpc-from-alchemy-app
-
METAMASK_PRIVATE_KEY=your-metamask-private-key
-
WALLET_PASSWORD=set-password-for-encrypting-environment-variables
Note: Follow Steps below if You are running your project on vs code otherwise open your terminal / shell / bash / cmd, with admin privileges then go to your project's directory i.e. as on windows "C:/users/username/documents/your_project/" and then paste and run commands given below in sequence.
npm install --force
b. Copy code below, Go to Your Project, Open Terminal then Paste it into terminal then hit enter. After successful execution of script you can delete METAMASK_PRIVATE_KEY environment variable from .env file.
npm run wallet:encrypt
npm run contract:deploy