This example showcases how to use the Abstract Global Wallet react SDK with WalletConnect inside a Next.js application.
-
Follow the Reown installation instructions to configure your Reown project and get a Reown APP ID.
-
Add your Reown APP ID to the
.env.localfile:# .env.local NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your-reown-app-id -
Get a copy of the
agw-walletconnect-nextjsexample directory from the Abstract Examples repository:mkdir -p agw-walletconnect-nextjs && curl -L https://codeload.github.com/Abstract-Foundation/examples/tar.gz/main | tar -xz --strip=2 -C agw-walletconnect-nextjs examples-main/agw-walletconnect-nextjs && cd agw-walletconnect-nextjs
-
Install dependencies
pnpm install
-
Run the development server
pnpm run dev
Visit http://localhost:3000 to see the app.
This example demonstrates how to:
- Connect to Abstract Global Wallet via WalletConnect
- Approve transactions from within the Abstract Portal
- Configure Abstract or Abstract Testnet as the chain in your AppKit configuration