This project enables event organisers to mint digital POP tokens that can be claimed by attendees through a simple scan of a QR code. These tokens are not just symbolic; they represent verifiable, compressed assets living entirely on-chain, making them ideal for airdrops, community rewards, or credentialing at scale.
For a detailed technical architecture and component flow diagrams, please refer to the ARCHITECTURE.md document or YouTube
P.S. After 48 hours of coding, debugging, and more coffee than water—here’s the project. The backend isn’t quite where I want it yet—there’s still a lot of work ahead. Initially, I considered creating a mock data interface for the hackathon, but I’ve decided to connect to a real blockchain network instead. Writing the smart contract is taking some time.
I came across this project on Superteam on March 10th, and this is my first-ever submission—and also my first Solana project!
Scalable cToken Distribution with Solana Pay and ZK Compression on Solana
A high throughput solution for creating and distributing compressed proof-of-participation tokens at scale on Solana blockchain using Solana Pay and Light Protocol's compression technology.
Check out Presentation for a quick overview of the project's functionality.
Scalable cToken leverages Light Protocol's zero-knowledge compression technology to revolutionize token distribution on Solana. This cutting-edge approach combines the security of blockchain with the efficiency of advanced cryptographic techniques, enabling a new paradigm for digital asset management.
At its core, our implementation uses zero-knowledge proofs to compress token data while preserving its integrity and verifiability. This allows us to dramatically reduce on-chain storage requirements and transaction costs without sacrificing security or functionality. The system can process hundreds of tokens in a single transaction, making it ideal for large-scale events and airdrops.
Beyond efficiency, this technology enhances privacy by allowing selective disclosure of information. Event organizers can verify attendance without exposing sensitive participant data, while attendees can prove their participation without revealing personal details. The entire system is built on cryptographic guarantees that mathematically prevent forgery or unauthorized modifications.
| Metric | Traditional Tokens | Compressed Tokens | Improvement |
|---|---|---|---|
| Cost per mint | ~0.005 SOL | ~0.000005 SOL | 1000× cheaper |
| Tokens per transaction | 1-5 | Up to 1,000 | 200-1000× more efficient |
| Processing speed | ~10 tokens/minute | ~5,000 tokens/minute | 500× faster |
| Storage requirements | Full on-chain data | Compressed merkle proofs | 100× less storage |
| Security level | Standard on-chain | Cryptographically equivalent | Equally secure |
| Privacy features | Limited | Selective disclosure | Enhanced privacy |
This powerful combination of scalability, privacy, and security makes Scalable cToken an ideal solution for any organization looking to distribute verifiable digital assets at scale without prohibitive costs or technical complexity.
This Scalable cToken uses Solana Pay to make QR code interactions super easy. Attendees can claim tokens without any hassle. The organizers set up a smart contract on Solana to mint tokens. This contract uses Light Protocol’s infrastructure to create cTokens. When an attendee scans the Solana Pay QR code, it sends a transaction to the smart contract. The smart contract checks if the claim is valid and then sends a unique, compressed proof-of-participation token straight to the attendee’s wallet. This way, the tokens are distributed securely and efficiently.
Organisers can log in with their Solana wallet, create a new event, and instantly mint compressed tokens tied to event metadata such as name, time, and location. Upon creation, the system generates a Solana Pay-compatible QR code, which attendees can scan to securely claim their tokens via their own wallet. Each token is issued using Light Protocol's compression infrastructure, drastically reducing storage costs while maintaining full L1 composability.
The user interface is built to be intuitive across devices and accommodates both the event creator and attendee journeys—from minting to claiming—with minimal friction.
The application leverages Solana Pay's QR code technology to create a seamless claiming experience:
- Dynamic Generation: Each event automatically generates a unique QR code that encodes all necessary transaction data
- Instant Recognition: Compatible with any standard QR scanner or smartphone camera
- Transaction Embedding: QR codes contain pre-formatted transaction instructions for token claiming
- Wallet Connectivity: Scanning initiates an immediate connection to the user's preferred Solana wallet
- Security Features: Each QR code includes validation parameters to prevent unauthorized claims
The platform offers efficient airdrop functionality for event organizers:
- Bulk Distribution: Send tokens to multiple recipients simultaneously with minimal gas costs
- Targeted Campaigns: Create audience segments based on event participation or other criteria
- Scheduled Releases: Set up timed airdrops to coincide with event milestones
- Claim Verification: Monitor real-time claiming statistics through an intuitive dashboard
- Flexible Allocation: Distribute different quantities of tokens to different participant tiers
This combination of QR-based claiming and airdrop functionality makes the platform ideal for both in-person events and remote participation scenarios.
Distribute tokens to large audiences with just a few clicks. Our airdrop system allows event organizers to send tokens to hundreds or thousands of attendees simultaneously. The platform leverages custom Solana smart contracts that interact seamlessly with Light Protocol's compression technology, reducing transaction costs by 1000x. Solana Pay integration enables frictionless claiming through scannable QR codes that embed transaction instructions, wallet connections, and verification parameters—all while maintaining sub-second finality and military-grade security.
To run this project locally, ensure you have Node.js 16 or later and a compatible Solana wallet (Phantom, Backpack, or Solflare). Clone the repository and install dependencies using:
git clone https://github.com/ayushshrivastv/Scalable-cToken.git
cd Scalable-cToken
npm install
# or if you prefer using bun
bun installThe project now includes an automated setup script that will:
- Create the necessary
.envfile with the correct environment variables - Generate a new admin wallet keypair for token operations
- Request an airdrop of SOL to the admin wallet (on devnet)
Simply run:
npm run setup
# or
bun run setupThen start the development server:
npm run dev
# or
bun run devThe development server will also automatically run the setup script if needed.
If you prefer to set up manually, create a .env file in the root directory with the following environment variables:
NEXT_PUBLIC_CLUSTER=devnet
NEXT_PUBLIC_RPC_ENDPOINT=https://api.devnet.solana.com
ADMIN_PRIVATE_KEY=your_admin_private_key_here
You can generate an admin private key using the Solana CLI:
solana-keygen new --no-passphrase -o admin-keypair.json
# Then convert to base64 format for the .env file
cat admin-keypair.json | base64The application will be available at http://localhost:3000. Connect your wallet to begin creating or claiming tokens.
To create tokens, connect your wallet and navigate to the "Create Event" section. Fill out the event information, confirm the transaction, and a QR code will be generated for distribution. Attendees can scan this QR code using any QR reader or camera app, which will launch Solana Pay and guide them through the token claim process in a few simple steps.
The process is secure, affordable, and designed for high-volume usage at real-world events.
This application is built with Next.js 15, React 18, and TypeScript, using Tailwind CSS and shadcn/ui for the frontend. Blockchain functionality is powered by Solana, with Light Protocol handling compression. Wallet interactions are handled via the Solana Wallet Adapter framework.
The architecture allows easy extensibility and is suitable for further enhancements such as event analytics, email confirmations, or token gating.
For more in-depth technical details, refer to the src/README.md file.
npm run dev # Run development server
npm run lint # Check for code issues
npm run format # Auto-format code
npm run build # Build application for production
npm run start # Start production serverFor event organizers, the process is simple: connect your Solana wallet, create an event with custom details, and generate QR codes for distribution. The system handles token creation using Light Protocol's compression technology.
- Connect wallet and access the intuitive dashboard
- Create an event with custom branding and metadata
- Generate a unique QR code for distribution
- Monitor real-time claim statistics
Attendees just scan the QR code with their phone, approve the claim in their Solana wallet, and instantly receive their token – all with minimal fees.
- Scan event QR code with any Phone
- Connect Solana wallet with a single tap
- Claim compressed token in seconds
- Instantly verify token in wallet
The application is deployed on Vercel. To deploy your own version:
- Push your code to GitHub.
- Import the repository into Vercel.
- Add the required environment variables:
NEXT_PUBLIC_CLUSTER(e.g.,devnet)NEXT_PUBLIC_RPC_ENDPOINT(e.g.,https://api.devnet.solana.com)
This project is licensed under the MIT License and is open for extension, experimentation, and contribution.
