Scaffold
--template frontend.
Environment Setup
Get a Project ID from cloud.reown.com and set it infrontend/.env:
frontend/.env
A Project ID is required for Reown — without it, the app renders a “Missing configuration” screen instead of connecting.
Provider Setup
Reown initializes AppKit with aWagmiAdapter and wraps your app in WagmiProvider. The network comes from activeChain in lib/network.ts, which follows NEXT_PUBLIC_NETWORK — no per-provider chain edits needed.
components/Providers.tsx
ThemeProvider → WagmiProvider (from the AppKit adapter) → QueryClientProvider
Inco SDK Integration
The Inco SDK works with thewalletClient provided by wagmi (which Reown/AppKit supplies). The network-aware client comes from lib/network.ts:
hooks/useConfLottery.ts