light-protocol

Implement Solana ZK Compression workflows for compressed tokens and PDAs.

125|79|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/sendaifun/skills --skill light-protocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: light-protocol
Source: https://github.com/sendaifun/skills/tree/main/skills/light-protocol
Command: npx skills add https://github.com/sendaifun/skills --skill light-protocol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to understand and implement Solana ZK Compression workflows for compressed tokens, PDAs, and the Light Token Program integrations.

Core Features & Use Cases

  • ZK Compression: Create rent-free compressed token accounts and PDAs using zero-knowledge proofs, enabling scalable on-chain state.
  • Light Token Program: A high-performance token standard that reduces minting and transfer costs, with wrap/unwrap interoperability with SPL tokens.
  • SDKs & RPC Methods: Includes TypeScript SDKs (@lightprotocol/stateless.js and @lightprotocol/compressed-token) and a rich set of JSON RPC methods for compressed accounts, balances, proofs, and history.
  • Use Case: From creating a new compressed mint to distributing tokens in batches, querying balances, and decompression back to SPL for DeFi interoperability.

Quick Start

Install the Light Protocol SDKs and run the example: node examples/zk-compression/mint-tokens.ts

Frequently Asked Questions about light-protocol

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

FAQPage Schema
What is ZK compression on Solana and how does it reduce token minting costs?

ZK compression on Solana uses zero-knowledge proofs to create rent-free compressed token accounts and PDAs, enabling scalable on-chain state that significantly reduces minting and transfer costs. It allows developers to store data more efficiently while maintaining cryptographic security.

How do I create and transfer compressed tokens using the Light Protocol SDK?

You can create and transfer compressed tokens using the @lightprotocol/compressed-token SDK. The workflow covers end-to-end use cases from mint creation to batch transfers, requiring Node.js tooling and access to a ZK-compression-enabled RPC provider like Helius.

Can I wrap and unwrap compressed tokens to SPL tokens for DeFi interoperability?

Yes, the Light Token Program supports wrap and unwrap interoperability with SPL tokens. You can decompress compressed tokens back to SPL standard to achieve full DeFi interoperability, or wrap SPL tokens to leverage ZK compression benefits.

What JSON RPC methods are available for querying compressed token balances and history?

The Light Protocol SDKs provide a rich set of JSON RPC methods for querying compressed accounts, balances, proofs, and history. These methods allow developers to retrieve detailed state information and transaction records for compressed tokens.

Do I need a specialized RPC provider to use Solana ZK compression?

Yes, you need access to a ZK-compression-enabled RPC provider such as Helius. Standard Solana RPC providers do not support the specialized JSON RPC methods required to interact with compressed accounts and verify zero-knowledge proofs.

What Node.js dependencies are required to start building with Light Protocol?

You need Node.js tooling along with two core TypeScript SDKs: @lightprotocol/stateless.js and @lightprotocol/compressed-token. These packages provide the programmatic interfaces for integrating ZK compression and Light Token Program workflows.