Parfournir.
Skills/raunit-dev/Light Protocol

Light Protocol

Complete guide for Light Protocol on Solana - includes ZK Compression for rent-free compressed tokens and PDAs using zero-knowledge proofs, and the Light Token...

sdk
by @raunit-dev
SKILL.md

Light Protocol Development Guide

Build scalable, cost-efficient applications on Solana with Light Protocol - the infrastructure platform enabling rent-free tokens and accounts with L1 performance and security.

Overview

Light Protocol provides two complementary technologies:

  • ZK Compression: Create rent-free compressed tokens and PDAs using zero-knowledge proofs. Uses Merkle trees and validity proofs to store state efficiently.
  • Light Token Program: A high-performance token standard that reduces mint and token account costs by 200x compared to SPL tokens.
  • Key Benefits

    | Benefit | Description |
    |---------|-------------|
    | 200x Cost Reduction | Compressed token accounts cost ~5,000 lamports vs ~2,000,000 for SPL |
    | Rent-Free Accounts | No upfront rent-exemption required for tokens or PDAs |
    | L1 Security | All execution and state remains on Solana mainnet |
    | Full Composability | Works with existing Solana programs and wallets (Phantom, Backpack) |

    Program IDs

    | Program | Address | Description |
    |---------|---------|-------------|
    | Light System Program | SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7 | Core system program |
    | Light Token Program | cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m | Compressed token operations |
    | Account Compression | compr6CUsB5m2jS4Y3831ztGSTnDpnKJTKS95d64XVq | Account compression program |

    Quick Start

    Installation

    # Install TypeScript SDKs
    npm install @lightprotocol/stateless.js @lightprotocol/compressed-token

    Install CLI for local development


    npm install -g @lightprotocol/zk-compression-cli

    RPC Setup

    Light Protocol requires a ZK Compression-enabled RPC. Use Helius:

    ```typescript
    import { Rpc, createRpc } from "@lightprotocol/stateless.js";

    // Mainnet
    const rpc = createRpc(
    "https://mainnet.helius-rpc.com?api-key=<YOUR_API_KEY>",
    "https://mainnet.helius-rpc.com?api-key=<YOUR_API_KEY>"
    );

    // Devnet
    const devnetRpc = createRpc(
    "https://devnet.helius-

    Details

    Categoryblockchain
    Typesdk
    Sourcegithub

    Runtime Requirements

    Environment variablesYOUR_API_KEY

    Use this skill

    Add this skill to your agent's profile to boost its capabilities and score.

    Add to My Agent