data-streaming
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseData Streaming
数据流式传输
Stream Light Protocol account state transitions via Laserstream gRPC.
通过Laserstream gRPC流式传输Light Protocol账户状态变更。
Workflow
工作流程
- Clarify intent
- Recommend plan mode, if it's not activated
- Use to resolve blind spots
AskUserQuestion - 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 for anything unclear — never guess or assume
AskUserQuestion - Identify blockers: permissions, dependencies, unknowns
- Plan must be complete before execution begins
- Use
- Execute
- Use tool with subagents for parallel research
Task - Subagents load skills via tool
Skill - Track progress with
TodoWrite
- Use
- When stuck: spawn subagent with ,
Read,Glob, DeepWiki MCP access and loadGrepskills/ask-mcp
- 明确意图
- 若计划模式未激活,推荐启用该模式
- 使用工具解决信息盲点
AskUserQuestion - 所有问题必须在执行前解决
- 识别参考资料与技能
- 将任务与下方的领域参考资料进行匹配
- 查找相关文档与示例
- 编写计划文件(YAML任务格式)
- 任何不清楚的内容都使用工具询问——切勿猜测或假设
AskUserQuestion - 识别阻碍因素:权限、依赖项、未知内容
- 计划必须完整后才能开始执行
- 任何不清楚的内容都使用
- 执行任务
- 使用工具结合子代理进行并行调研
Task - 子代理通过工具加载技能
Skill - 使用追踪进度
TodoWrite
- 使用
- 遇到阻塞时:生成带有、
Read、Glob、DeepWiki MCP访问权限的子代理,并加载Grepskills/ask-mcp
When NOT to use
不适用场景
For simple account lookups, call from . It races hot and cold lookups automatically.
get_account_interfacelight-clientThis skill is for continuous data pipelines: aggregators, market makers, and indexers that need real-time state change notifications rather than point queries.
对于简单的账户查询,调用中的即可,它会自动并行执行冷热查询。
light-clientget_account_interface本技能适用于持续数据管道场景:需要实时状态变更通知而非单点查询的聚合器、做市商和索引器。
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 |
| 受众 | 参考资料 |
|---|---|
| 所有用户——共享架构(优先阅读) | references/shared.md |
| 代币账户(兼容SPL,165字节) | references/token-accounts.md |
| 铸币账户(borsh反序列化,元数据) | references/mint-accounts.md |
| 可压缩PDA(按程序划分,鉴别符校验) | references/pdas.md |
Account type decision
账户类型选择
| Streaming... | Account type | Key difference |
|---|---|---|
| SPL-compatible token balances | Token accounts | |
| Mint supply, metadata, authorities | Mint accounts | |
| Your program's PDA state | Compressible PDAs | 8-byte discriminator check, per-program filter |
| 流式传输对象... | 账户类型 | 核心差异 |
|---|---|---|
| 兼容SPL的代币余额 | 代币账户 | |
| 铸币供应量、元数据、权限方 | 铸币账户 | |
| 自定义程序的PDA状态 | 可压缩PDA | 8字节鉴别符校验,按程序过滤 |
Program addresses
程序地址
| Program | Address |
|---|---|
| Light Token Program | |
| Light System Program | |
| 程序 | 地址 |
|---|---|
| Light Token Program | |
| Light System Program | |
External references
外部参考资料
| Resource | Link |
|---|---|
| Photon indexer | github.com/helius-labs/photon |
| 资源 | 链接 |
|---|---|
| Photon索引器 | github.com/helius-labs/photon |