This is a boilerplate Next.js project with Wagmi.sh and Tailwind.
First, install the components:
npm install
Next, set your environment variables in .env.local in the root of the project: (The prefix NEXT_PUBLIC is mandatory)
NEXT_PUBLIC_INFURA_KEY=... NEXT_PUBLIC_WALLET_CONNECT_API=...
Finally start the app:
npm run dev
Open http://localhost:3000 with your browser to see the result.
You can connect your wallet and start experimenting with wagmi.sh.
You can connect your editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
Check out my YouTube channel for some cool web3 coding videos.