This project is a minimal React + TypeScript single-page app that lets a user connect a wallet (MetaMask or WalletConnect) and trigger the P2P.org Safe Onboarding SDK flow on Base.
- Node.js 18+
- npm 10+
- A WalletConnect Cloud project id if you want to offer the QR-based wallet connection.
npm installCreate a .env file (or export the environment variable another way) when you want to enable the WalletConnect connector:
VITE_WALLETCONNECT_PROJECT_ID=your_project_id_here
# Optional, if you plan to call helpers that read Safe RPC credentials from env:
# VITE_SAFE_RPC_URL=https://...
# VITE_SAFE_PRIVATE_KEY=0x...Run the development server:
npm run devThen open the app, connect a wallet, and click Onboard. The sdk prompts for two transactions. On success the UI shows:
- Safe address
- Roles address
- Predicted P2pSuperformProxy address
npm run buildThe build output is written to dist/.