AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Solana Compress

skill-superteamcanada-stca-skills-solana-compress · by SuperteamCanada

Launch ZK compressed tokens on Solana using Light Protocol for 99% cost reduction. Triggers on "compressed tokens", "ZK compression", "Light Protocol", "cheap airdrop", "mass token distribution", "compressed mint".

No reviews yet
0 installs
18 views
0.0% view→install

Install

$ agentstack add skill-superteamcanada-stca-skills-solana-compress

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-superteamcanada-stca-skills-solana-compress)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Solana Compress? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

ZK Compressed Token Launcher

Build with ZK Compression on Solana using Light Protocol to reduce on-chain storage costs by 99%. The Light Token SDK drops Solana Associated Token Account fees to $0.001 for all SPL tokens, with Token-2022 extension support.

Why this matters now

Light Token SDK is live on mainnet. Any operation that creates many token accounts — airdrops, loyalty programs, gaming assets, agent micropayments — goes from economically impossible to trivially cheap. Token-2022 extensions (transfer hooks, permanent delegation, transfer fees) now work with compression.

When to use this skill

  • "Airdrop tokens to 100k wallets cheaply"
  • "Compressed token mint"
  • "Reduce token account costs"
  • "ZK compression on Solana"
  • "Mass NFT distribution"
  • "Gaming assets at scale"
  • Any project creating many token accounts

Core concept

Standard Solana token accounts cost ~$0.002 each in rent. At scale:

  • 10k accounts = ~$20
  • 100k accounts = ~$200
  • 1M accounts = ~$2,000

With ZK Compression:

  • 10k accounts = ~$0.20
  • 100k accounts = ~$2
  • 1M accounts = ~$20

The compression works by storing account data in a Merkle tree and posting only the root hash on-chain. ZK proofs verify state transitions without storing full account data.

Build mode workflow

Step 1 — Define the use case

Ask the founder:

  1. What tokens? (fungible SPL, Token-2022 with extensions, NFTs/cNFTs)
  2. Scale? (hundreds, thousands, millions of accounts)
  3. Token-2022 extensions needed? (transfer hooks, transfer fees, permanent delegation, confidential transfers)
  4. Distribution method? (airdrop, claim page, in-app earning, game rewards)
  5. Composability needs? (do compressed tokens need to interact with existing DeFi protocols?)

Step 2 — Scaffold the project

solana-compress/
├── src/
│   ├── token/
│   │   ├── create.ts          # Create compressed token mint
│   │   ├── mint.ts            # Mint compressed tokens
│   │   └── transfer.ts        # Transfer compressed tokens
│   ├── airdrop/
│   │   ├── distribute.ts      # Batch distribution script
│   │   └── merkle.ts          # Merkle tree management
│   ├── utils/
│   │   └── cost-calculator.ts # Compare compressed vs uncompressed costs
│   └── index.ts
├── .env.example
└── package.json

Step 3 — Set up Light Protocol SDK

npm install @lightprotocol/stateless.js @lightprotocol/compressed-token

Dependencies:

  • @lightprotocol/stateless.js — Core compression primitives
  • @lightprotocol/compressed-token — SPL token compression
  • A compatible RPC (Helius supports ZK Compression natively)

Step 4 — Implement compressed token operations

Create a compressed token mint:

import { createMint } from "@lightprotocol/compressed-token";
import { buildAndSignTx, Rpc } from "@lightprotocol/stateless.js";

const rpc = createRpc(HELIUS_RPC_URL);
const mint = await createMint(rpc, payer, authority, decimals);

Mint compressed tokens:

import { mintTo } from "@lightprotocol/compressed-token";

await mintTo(rpc, payer, mint, destination, authority, amount);

Batch airdrop:

import { compressedAirdrop } from "@lightprotocol/compressed-token";

// Distribute to thousands of wallets in a single transaction
await compressedAirdrop(rpc, payer, mint, recipients, amountPerRecipient);

Step 5 — Cost comparison

Before deploying, run the cost calculator to show the founder the savings:

| Operation | Standard | Compressed | Savings | |-----------|----------|------------|---------| | 1 token account | ~$0.002 | ~$0.00002 | 99% | | 10k airdrop | ~$20 | ~$0.20 | 99% | | 100k airdrop | ~$200 | ~$2 | 99% | | 1M accounts | ~$2,000 | ~$20 | 99% |

Step 6 — Token-2022 extensions (if needed)

Compressed tokens support Token-2022 extensions:

  • Transfer hooks — Execute custom logic on every transfer (royalties, compliance checks)
  • Transfer fees — Automatic fee collection on transfers
  • Permanent delegation — Allow a delegate to transfer tokens at any time (escrow, vesting)
  • Confidential transfers — Hide transfer amounts using ZK proofs

Hard rules

  1. Use a compression-compatible RPC. Not all RPCs support ZK Compression. Helius has native support. Check provider compatibility before starting.
  2. Understand the composability tradeoff. Compressed tokens can't directly interact with standard DeFi protocols (AMMs, lending) that expect regular token accounts. Decompress first if needed.
  3. Merkle tree sizing matters. Choose tree depth based on expected account count. Too small = runs out of leaves. Too large = higher creation cost.
  4. Test decompression flows. Users may need to decompress tokens to use them in existing DeFi. Make sure this path works smoothly.
  5. Monitor tree utilization. When a Merkle tree fills up, you need a new one. Build monitoring for tree capacity.

Reference links

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.