← 返回
开发者工具 Key 中文

solana-light-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, associate...
针对Solana代币客户端开发,Light Token比SPL便宜200倍且改动极小。技能涵盖创建铸造及关联账户指南……
tilo-14
开发者工具 clawhub v1.0.6 1 版本 100000 Key: 需要
★ 0
Stars
📥 874
下载
💾 9
安装
1
版本
#latest

概述

Light Token Client SDKs

Client-side cookbook for @lightprotocol/compressed-token (TypeScript) and light_token_client (Rust). Covers all token operations: create mints, associated token accounts, transfer, approve, revoke, burn, wrap, unwrap, freeze, thaw, close, and load.

Creation costSPLLight Token
:----------------:------------------:-------------------
Token account~2,000,000 lamports~11,000 lamports

Prerequisites

Examples show both localnet and devnet configurations. For devnet, set:

  • API_KEY env var — Helius or Triton RPC API key. In production, load from a secrets manager.
  • ~/.config/solana/id.json — local Solana keypair (solana-keygen new). In production, load from a secrets manager.

Workflow

  1. Clarify intent
    • Recommend plan mode, if it's not activated
    • Use AskUserQuestion to resolve blind spots
    • All questions must be resolved before execution
  2. Identify references and skills
  3. Write plan file (YAML task format)
    • Use AskUserQuestion for anything unclear — never guess or assume
    • Identify blockers: permissions, dependencies, unknowns
    • Plan must be complete before execution begins
  4. Execute
    • Use Task tool with subagents for parallel research
    • Subagents load skills via Skill tool
    • Track progress with TodoWrite
  5. When stuck: ask to spawn a read-only subagent with Read, Glob, Grep, and DeepWiki MCP access, loading skills/ask-mcp. Scope reads to skill references, example repos, and docs.

Domain references

TaskReference
-----------------
Create a mintcreate-mint.md
Create SPL interface PDAcreate-interface-pda.md
Create associated token accountcreate-associated-token-account.md
Create token accountcreate-token-account.md
Mint tokensmint-to.md
Transfer tokenstransfer-interface.md
Transfer checkedtransfer-checked.md
Approve delegateapprove.md
Revoke delegaterevoke.md
Wrap SPL to Lightwrap.md
Unwrap Light to SPLunwrap.md
Load associated token accountload-associated-token-account.md
Burn tokensburn.md
Burn checkedburn-checked.md
Freeze token accountfreeze.md
Thaw token accountthaw.md
Close token accountclose-token-account.md
Mint SPL, wrap, and transferspl-mint-wrap-transfer.md

Operations overview

OperationTypeScriptRustDocs
----------------------------------
Create Light mintcreateMintInterfaceCreateMintcreate-mint
Create SPL mint w/ interface PDAcreateMintInterface + TOKEN_PROGRAM_IDcreate-mint
Create T22 mint w/ interface PDAcreateMintInterface + TOKEN_2022_PROGRAM_IDcreate-mint
Add interface PDA to existing mintcreateSplInterfacecreate-mint
Create associated token accountcreateAtaInterfaceCreateAtacreate-ata
Create token accountCreateTokenAccountcreate-token-account
Mint tomintToInterfaceMintTomint-to
TransfertransferInterfaceTransferInterfacetransfer-interface
Transfer checkedTransferCheckedtransfer-checked
ApproveapproveApproveapprove-revoke
RevokerevokeRevokeapprove-revoke
BurnBurnburn
Burn checkedBurnCheckedburn
Wrap SPL to LightwrapWrapwrap-unwrap
Unwrap Light to SPLunwrapUnwrapwrap-unwrap
Load associated token account (cold to hot)loadAtaload-ata
FreezeFreezefreeze-thaw
ThawThawfreeze-thaw
CloseCloseclose-token-account

External references

ResourceLink
----------------
Docs cookbookzkcompression.com/light-token/cookbook
TypeScript examplesexamples-light-token/typescript-client
Rust examplesexamples-light-token/rust-client
@lightprotocol/stateless.jsAPI docs
@lightprotocol/compressed-tokenAPI docs
light-clientdocs.rs
light-token-clientdocs.rs
light-tokendocs.rs

Security

This skill does not pull, store, or transmit external secrets. It provides code patterns, documentation references, and development guidance only.

  • Declared dependencies. Devnet and mainnet examples require API_KEY (Helius or Triton RPC key) and read ~/.config/solana/id.json for the payer keypair. Neither is needed on localnet. In production, load both from a secrets manager.
  • User-provided configuration. RPC endpoints, wallet keypairs, and authentication tokens are configured in the user's application code. The skill demonstrates patterns — it does not store or transmit secrets.
  • Install source. npx skills add Lightprotocol/skills installs from the public GitHub repository (Lightprotocol/skills). Verify the source before running.
  • Subagent scope. When stuck, the skill asks to spawn a read-only subagent with Read, Glob, and Grep scoped to skill references, example repos, and docs.
  • Audited protocol. Light Protocol smart contracts are independently audited. Reports are published at github.com/Lightprotocol/light-protocol/tree/main/audits.

版本历史

共 1 个版本

  • v1.0.6 当前
    2026-03-29 19:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,843
ai-intelligence

solana-token-distribution

tilo-14
Solana代币分发比SPL便宜5000倍,用于奖励、空投等场景。@lightprotocol/compressed-token (TypeScript)。参考示例...
★ 0 📥 753
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,727