Use this guide when you want a Next.js dApp that connects wallets via WalletConnect (e.g. MetaMask Mobile QR), uses WAGMI and Viem, and deploys a contract from the browser.Documentation Index
Fetch the complete documentation index at: https://berachain-422fce37-feat-nodes-section-reno.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Repository
- Code: github.com/berachain/guides/tree/main/apps/walletconnect-nextjs
- README (raw): raw README
Requirements
- Node
v20.11.0, npm - WalletConnect Project ID — set in
.envasNEXT_PUBLIC_PROJECT_ID - MetaMask Mobile (or other WalletConnect-compatible wallet) for QR flow
Stack
Next.js 14, TypeScript, WalletConnect, WAGMI, Viem.Quick start
- Clone and install
Add
NEXT_PUBLIC_PROJECT_IDfrom WalletConnect Cloud. - Run
- In the app: Connect Wallet → WalletConnect → scan QR with MetaMask Mobile. Enter a greeting and click Deploy to deploy the contract; confirm in MetaMask.
Key files
| Purpose | Path |
|---|---|
| App / config | Next.js app in repo root (see README) |