lightrao / nextjs-ethers-metamask-connect-24

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nextjs-ethers-metamask-connect-24

This is a minimalistic project to show us how we can connect to metamask using ethersjs in nextjs / react.

Requirements

  • git
  • Nodejs & npm
  • Yarn
  • Metamask
  • vscode

Install git:

sudo apt install git-all

Install nodejs & npm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install node

Install yarn:

 npm install --global yarn

Install vscode:

download and install the .deb package from the official Microsoft website, then run:

sudo apt install ./<file>.deb

Creat next.js app

 yarn create next-app nextjs-ethers-metamask-connect-24

Run next.js app

yarn dev

ctrl + c stop server.

Install ethers.js

yarn add ethers@^5.7.2

or uninstall

yarn remove ethers

Edit pages to realize project

I have deployed and approved SimpleStorage contract on sepolia for testing.

About


Languages

Language:CSS 53.7%Language:JavaScript 46.3%