Skip to main content

Use the airdrop agent skill for token distribution and airdrops:
For orchestration, install the general skill:
Choose your implementation based on your needs:
Via Webapp you can use Airship by Helius Labs to airdrop to up to 200,000 recipients.
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.
Add decompression of SPL Tokens with this script.
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.