This is a demo UI for the Smart Wallet API library. It illustrates one can use Smart Wallet API to build a Google OAuth-based wallet on Cardano.
- Install dependencies:
npm install- Configure environment variables:
Edit
.env:
VITE_CLIENT_ID: Google OAuth client IDVITE_CLIENT_SECRET: Google OAuth client secretVITE_WEBSITE_URL: Base URL for your website (default: http://localhost:8080)VITE_BACKEND_URL: URL for the zkFold Smart Wallet backend serverVITE_BACKEND_API_KEY: an API key to access the Smart Wallet backend serverVITE_PROVER_URL: Comma-separated list of prover server URLs. One will be selected at random on each load.
- Run the application:
npm run devThe application runs on http://localhost:8080.
The application can be deployed to any static hosting service:
- Build the application:
npm run build- Deploy the
dist/folder to your static hosting service.