Skip to main content

Guides

There are two ways to use ZK Compression to distribute your SPL tokens.

No-Code Airdrop Tool

Use Airship by Helius Labs to airdrop to up to 200,000 recipients via Webapp.

Custom Programmatic Airdrop

Create a programmatic airdrop with this guide for more control.

Cost Comparison

Programmatic Airdrop

Choose your implementation based on your needs:
What you’ll build: A test airdrop sending compressed tokens to 3 recipients on your local validator.
1

Prerequisites

Make sure you have dependencies and developer environment set up!
System Requirements
  • Node.js >= 20.18.0 (required by latest Solana packages)
  • npm or yarn package manager
Dependencies
Developer Environment
By default, all guides use Localnet.
2

Mint SPL tokens to your wallet

Run this mint-spl-tokens.ts to mint SPL tokens to your wallet.
mint-spl-tokens.ts
3

Execute the Airdrop

Next, distribute the SPL tokens to all recipients.
Ensure you have the latest @lightprotocol/stateless.js and @lightprotocol/compressed-token versions ≥ 0.21.0!
simple-airdrop.ts

Advanced Features

Solana Wallets like Phantom and Backpack already support compressed tokens. Still, you can let users decompress to SPL via your Frontend to customize claims.
Set priority fees dynamically for decompression. Learn more here.

Native Swap via Jup-API

If you have a custom FE, you can let users swap compressed tokens using the Jup-API. A reference implementation is available here.

Next Steps

Create an airdrop with claim functionality.