WebWallet is a Vite + React app that gives you a stand-alone blockchain wallet in your web browser.
- Run
nvm installonce if needed, thennvm useto switch to the pinned Node version from.nvmrc. - Install dependencies with
npm ci. - Create a local env file with
cp .env.development.example .env.development. - Start the app with
npm run dev.
.env.development is intentionally ignored by Git so local values stay on your machine. Commit changes to .env.development.example when the set of supported variables changes.
Current development env variables:
VITE_MOCK_PASSKEY=trueenables the mock passkey flow.VITE_MOCK_PRIVATE_KEY=is optional. Leave it blank to generate a random mock private key at startup.VITE_SEPOLIA_BUNDLER_URL=is optional. Point it at a Pimlico-compatible Sepolia RPC if you want to pay gas in ERC-20 tokens like USDC.
When VITE_MOCK_PRIVATE_KEY is not set, the app prints a generated value to the browser console in a copy-pasteable format so it can be added back to .env.development and reused across restarts.
npm run devstarts the Vite dev server.npm run buildcreates a production build.npm run lintruns ESLint.npm run testruns the test suite once.