This is a minimalistic project to show us how we can connect to metamask using ethersjs in nextjs / react.
- git
- Nodejs & npm
- Yarn
- Metamask
- vscode
sudo apt install git-all
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install node
npm install --global yarn
download and install the .deb package from the official Microsoft website, then run:
sudo apt install ./<file>.deb
yarn create next-app nextjs-ethers-metamask-connect-24
yarn dev
ctrl + c stop server.
yarn add ethers@^5.7.2
or uninstall
yarn remove ethers
I have deployed and approved SimpleStorage contract on sepolia for testing.