light-protocol

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

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/IagoPrandi/zeroclaw-plugin --skill light-protocol-iagoprandi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: light-protocol
Source: https://github.com/IagoPrandi/zeroclaw-plugin/tree/main/.claude/skills/solana-dev/ext/sendai/skills/light-protocol
Command: npx skills add https://github.com/IagoPrandi/zeroclaw-plugin --skill light-protocol-iagoprandi

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? SPL token accounts on Solana require rent-exemption deposits of roughly 2,000,000 lamports each, making 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. - RPC & Querying Reference: Documentation for all 21 JSON RPC methods, program addresses, state trees, and a complete TypeScript SDK reference. - Use Case: A developer running a token airdrop to 10,000 wallets uses the batch operations examples to split distributions into 4-account transactions, cutting rent costs from thousands of SOL to a fraction. ## Quick Start Use the light-protocol skill to create a compressed token mint on Solana devnet and mint tokens to a recipient using the TypeScript SDK.

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 from @lightprotocol/stateless.js. Pass the RPC, payer keypair, mint authority public key, and decimals; it returns the mint address and transaction signature with a built-in token pool.

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 without ZK proofs that uses fewer compute units and offers wrap/unwrap interoperability 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 endpoints like api.mainnet-beta.solana.com return 'Method not found' errors for compression methods like getCompressedAccount and getValidityProof.

Why do I get a TokenPool not found error when compressing SPL tokens?▼

This error occurs when the SPL mint lacks a token pool for compression. Call createTokenPool from @lightprotocol/compressed-token before compressing; it does not require mint authority, so anyone can add a pool to an existing mint.

What are the transaction limits for compressed token operations?▼

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

Which wallets support compressed tokens on Solana?▼

Phantom and Backpack provide native compressed token support. Compressed accounts remain fully composable with existing Solana programs since all execution and state stays on Solana mainnet.