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, associated token accounts, transfer, approve, burn, wrap, and more. @lightprotocol/compressed-token (TypeScript) and light_token_client (Rust).

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "light-token-client" with this command: npx skills add Lightprotocol/skills

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Nerf To 3dgs Migrator

Migrate NeRF-based methods to 3D Gaussian Splatting with step-by-step guidance. Analyzes component compatibility, provides code templates, and identifies pot...

Registry SourceRecently Updated
Coding

3dgs Code Reviewer

Review 3D Gaussian Splatting implementation code for correctness, performance bugs, and best practices. Covers CUDA kernels, rendering pipeline, training loo...

Registry SourceRecently Updated
Coding

AI Short Film Producer

低成本AI短剧/短片全流程制作技能。使用速创API(wuyinkeji.com)的Grok Imagine生成视频镜头、TTS生成配音,配合FFmpeg+Python本地合成,WorkBuddy编排全流程。适用于用户需要从零制作AI短片、短视频、短剧EP、预告片等场景。包含完整的分镜脚本创作、视频生成、配音生成、...

Registry SourceRecently Updated
Coding

Dlazy Image Generate

Image generation skill. Automatically selects the best dlazy CLI image model based on the prompt.

Registry SourceRecently Updated