Skip to content

Repository files navigation

example-token-distribution

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

About

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

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages