Skip to content

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

License

Notifications You must be signed in to change notification settings

Lightprotocol/example-token-distribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Script Description
pnpm run mint Create a new SPL mint and mint tokens
pnpm run airdrop:simple Simple airdrop to a small recipient list
pnpm run airdrop:large Optimized batched airdrop for many recipients
pnpm run decompress Compress tokens then decompress back to SPL

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published