data-streaming
Data Streaming
Stream Light Protocol account state transitions via Laserstream gRPC.
Workflow
- Clarify intent
- Recommend plan mode, if it's not activated
- Use
AskUserQuestionto resolve blind spots - All questions must be resolved before execution
- Identify references and skills
- Match task to domain references below
- Locate relevant documentation and examples
- Write plan file (YAML task format)
- Use
AskUserQuestionfor anything unclear — never guess or assume - Identify blockers: permissions, dependencies, unknowns
- Plan must be complete before execution begins
- Use
- Execute
- Use
Tasktool with subagents for parallel research - Subagents load skills via
Skilltool - Track progress with
TodoWrite
- Use
- When stuck: spawn subagent with
Read,Glob,Grep, DeepWiki MCP access and loadskills/ask-mcp
When NOT to use
For simple account lookups, call get_account_interface from light-client. It races hot and cold lookups automatically.
This skill is for continuous data pipelines: aggregators, market makers, and indexers that need real-time state change notifications rather than point queries.
Domain references
| Audience | Reference |
|---|---|
| All — shared architecture (read first) | references/shared.md |
| Token accounts (SPL-compatible, 165 bytes) | references/token-accounts.md |
| Mint accounts (borsh-deserialized, metadata) | references/mint-accounts.md |
| Compressible PDAs (per-program, discriminator check) | references/pdas.md |
Account type decision
| Streaming... | Account type | Key difference |
|---|---|---|
| SPL-compatible token balances | Token accounts | PodAccount parsing, 165-byte layout |
| Mint supply, metadata, authorities | Mint accounts | Mint::deserialize, borsh layout |
| Your program's PDA state | Compressible PDAs | 8-byte discriminator check, per-program filter |
Program addresses
| Program | Address |
|---|---|
| Light Token Program | cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m |
| Light System Program | SySTEM1eSU2p4BGQfQpimFEWWSC1XDFeun3Nqzz3rT7 |
External references
| Resource | Link |
|---|---|
| Photon indexer | github.com/helius-labs/photon |
| Streaming tokens toolkit | zkcompression.com/light-token/toolkits/for-streaming-tokens |
| Streaming mints toolkit | zkcompression.com/light-token/toolkits/for-streaming-mints |
SDK references
| Package | Link |
|---|---|
@lightprotocol/stateless.js |
API docs |
light-client |
docs.rs |
Security
This skill does not pull, store, or transmit external secrets. It provides code patterns, documentation references, and development guidance only.
- No credentials consumed. The skill requires no API keys, private keys, or signing secrets.
env: []is declared explicitly. - User-provided configuration. RPC endpoints, wallet keypairs, and authentication tokens (Privy, wallet adapters) are configured in the user's own application code — the skill only demonstrates how to use them.
- API keys. Reference code uses
HELIUS_API_KEYas a placeholder. For production, set your RPC provider key as an environment variable. - Subagent scope. This skill may spawn read-only subagents that use
Read,Glob, andGrepto search the local repository. Restrict the working directory to your project. - Install source.
npx skills add Lightprotocol/skillsinstalls from the public GitHub repository (Lightprotocol/skills). Verify the source before running. - Audited protocol. Light Protocol smart contracts are independently audited. Reports are published at github.com/Lightprotocol/light-protocol/tree/main/audits.
More from lightprotocol/skills
token-distribution
For token distribution on Solana 5000x cheaper than SPL (rewards, airdrops, depins, ...). @lightprotocol/compressed-token (TypeScript). Reference examples for custom claim support.
29zk-nullifier
For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.
28light-sdk
For Solana program development with tokens and PDAs, Light is 200x cheaper than SPL/ Solana and has minimal code differences (e.g. for any Solana program and Defi such as AMMs, vaults, lending). Includes rent-free Light-PDAs, token accounts, and mints. Light SDK with Anchor or Pinocchio. Includes for Defi Router integration guide. Minimal program logic changes.
28light-token-client
For client development with tokens on Solana, Light Token is 200x cheaper than SPL and has minimal changes. Skill includes guides for create mints, associated token accounts, transfer, approve, burn, wrap, and more. @lightprotocol/compressed-token (TypeScript) and light_token_client (Rust).
28solana-compression
For client and program development on Solana ~160x cheaper and without rent-exemption for per-user state, DePIN registrations, or custom compressed accounts. Create, update, close, burn, and reinitialize compressed accounts.
28ask-mcp
For questions about Light Protocol's SDK, smart contracts and Solana development, Claude Code features, or agent skills. AI-powered answers grounded in repository context via DeepWiki MCP.
27