CtrlK
BlogDocsLog inGet started
Tessl Logo

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).

49

Quality

55%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Advisory

Suggest reviewing before use

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/light-token-client/SKILL.md
SKILL.md
Quality
Evals
Security

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
    • Match task to domain references below
    • Locate relevant documentation and examples
  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
Delegate transferdelegate-transfer.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
SPL to Light comparisonspl-to-light.md
Token 2022 extensions overviewextensions/overview.md
Metadata + MetadataPointerextensions/metadata-and-metadata-pointer.md
Transfer feesextensions/transfer-fees.md
Transfer hookextensions/transfer-hook.md
Interest-bearing tokensextensions/interest-bearing-tokens.md
Default account stateextensions/default-account-state.md
Permanent delegateextensions/permanent-delegate.md
Mint close authorityextensions/close-mint.md
Token groups and membersextensions/token-groups-and-members.md
Pausable mintextensions/pausable-mint.md
Confidential transferextensions/confidential-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
ApproveapproveInterfaceApproveapprove-revoke
RevokerevokeInterfaceRevokeapprove-revoke
Delegate transfertransferInterface + { owner }approve-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.
Repository
Lightprotocol/skills
Last updated
Created

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.