light-protocol

Build Solana applications with ZK Compression and the Light Token Program using TypeScript SDKs.

1|1|Updated May 21, 2026
One-click install
npx skills add https://github.com/naruto11eth/cryptoskills --skill light-protocol-naruto11eth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: light-protocol
Source: https://github.com/naruto11eth/cryptoskills/tree/main/skills/light-protocol
Command: npx skills add https://github.com/naruto11eth/cryptoskills --skill light-protocol-naruto11eth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @lightprotocol/stateless.js, @lightprotocol/compressed-token, @solana/web3.js, @solana/spl-token, dotenv, and includes references (resource) components.

What problem does it solve? Solana token accounts and PDAs require rent-exemption deposits that make large-scale token distributions and account creation expensive. This Skill provides complete guidance for Light Protocol, which reduces token account costs by 200x through ZK Compression and the Light Token Program. ## Core Features & Use Cases - ZK Compression Operations: Create compressed token mints, mint to multiple recipients, transfer, compress SPL tokens, and decompress back to SPL format using @lightprotocol/stateless.js and @lightprotocol/compressed-token. - Light Token Program: Create high-performance token mints with wrap/unwrap interoperability with SPL and Token-2022 tokens. - 21 JSON RPC Methods: Query compressed accounts, token balances, validity proofs, transaction signatures, and indexer health through Helius RPC endpoints. - Use Case: Airdrop tokens to thousands of recipients by batching mintTo calls (4 accounts per transaction) with compressed tokens costing ~5,000 lamports instead of ~2,000,000 per SPL account. ## Quick Start Set up a Light Protocol client with a Helius RPC endpoint and create a compressed token mint with 9 decimals, then mint tokens to a recipient address.

Frequently Asked Questions about light-protocol

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a compressed token mint on Solana?

Use the createMint function from @lightprotocol/compressed-token with an RPC connection, payer keypair, mint authority public key, and decimals. It returns the mint address and transaction signature, and includes a built-in token pool for compression.

How to compress SPL tokens to reduce rent costs?

Call compress from @lightprotocol/compressed-token with the mint, amount, owner, recipient, and source SPL token account. To compress an entire account and reclaim rent, use compressSplTokenAccount, optionally keeping a specified amount in SPL format.

What is the difference between ZK Compression and the Light Token Program?

ZK Compression uses zero-knowledge proofs and Merkle trees for rent-free compressed tokens and PDAs, while the Light Token Program is an optimized token standard with lower compute units for hot paths. Light tokens wrap and unwrap with SPL and Token-2022 tokens.

Does Light Protocol work with standard Solana RPC endpoints?

No, Light Protocol requires a ZK Compression-enabled RPC endpoint such as Helius. Standard Solana RPC endpoints return method-not-found errors for compression methods like getCompressedAccount and getValidityProof.

Why does my compressed token transaction fail with too many accounts?

Compressed token transactions support a maximum of 4 accounts per transaction. Split large mints or distributions into batches of 4 recipients, add delays between transactions, and increase the compute unit budget for proof verification.

Which wallets support compressed tokens on Solana?

Phantom and Backpack wallets provide native support for compressed tokens. Compressed accounts remain fully composable with existing Solana programs and maintain L1 security on mainnet.