Example Web Client
June 24, 2024 ยท View on GitHub
This project demonstrates how to use @lightprotocol/stateless.js in a browser environment to interact with the ZK Compression API.
Running the Example
You need to have the CLI installed to run this example. For installation instructions, see here.
- Start a light test-validator using the CLI
light test-validator
- Start the app
# NPM
npm install && npm run dev
# Yarn
yarn && yarn dev
# PNPM
pnpm install && pnpm run dev
The app will serve and mount the app at http://localhost:1234 and run the code defined in page.tsx.
The UI will show a react-hydration-error which you can safely ignore.