This is a Next.js project bootstrapped with create-next-app
.
It connects with injected web3 wallet from the browser and allows to:
- switch networks (chains)
- read balance
- send transaction
This project utilizes next.js API routing to connect with Etherscan. THe key is stored locally in the .env
file.
See .env
for more details and how to obtain a key.
Create .env.local
and add required key(s) to it.
First, run the development server:
pnpm install
pnpm dev
Open http://localhost:3000 with your browser to see the result.
Once the application is running, you should see the following login screen:
Then, use selected web3 wallet from the browser and allow read-only access to your account.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.