example-token-distribution

December 19, 2025 ยท View on GitHub

Reference implementations for common token distribution flows with ZK Compression (airdrops, payments, rewards)

Get Started

pnpm install @lightprotocol/stateless.js@alpha \
            @lightprotocol/compressed-token@alpha

# Add your API key to .env
cp .env.example .env

Get one here if you don't have one yet.

ScriptDescription
pnpm run mintCreate a new SPL mint and mint tokens
pnpm run airdrop:simpleSimple airdrop to a small recipient list
pnpm run airdrop:largeOptimized batched airdrop for many recipients
pnpm run decompressCompress tokens then decompress back to SPL