This project demonstrates how to use @lightprotocol/stateless.js
in a browser environment to interact with the ZK Compression API.
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.