Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Resources for developers to learn and build:

- **Light-Token Program**: High performance token program that reduces the cost of account creations by 200x, while being more CU efficient than SPL on hot paths.
- **Compressed Tokens**: Rent-free token accounts that reduce the cost of account creation by ~99% compared to SPL.
- **ZK Compression Core**: Solana account primitive that lets you create tokens and PDAs without rent-exemption cost with L1 performance and security.

---
Expand All @@ -9,5 +9,5 @@ Find more resources here:

- Documentation: [zkcompression.com](https://www.zkcompression.com).
- Index for LLMs and Agents: [llms.txt](https://www.zkcompression.com/llms.txt)
- [Examples](https://github.com/Lightprotocol/examples-light-token)
- [Examples](https://github.com/Lightprotocol/examples-zk-compression)
- [Agent Skills](https://github.com/Lightprotocol/skills/tree/main)
14 changes: 5 additions & 9 deletions ai-tools/agent-skills.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Agent skills"
description: "Install structured agent skill files for Token APIs and PDA accounts. Skills tell AI coding agents what they can do with ZK Compression."
keywords: ["agent skills light protocol", "AI coding agent solana", "claude code solana skills", "cursor solana skills", "light sdk agent skill", "light token agent skill", "AI agent solana development"]
keywords: ["agent skills light protocol", "AI coding agent solana", "claude code solana skills", "cursor solana skills", "compressed token agent skill", "compressed pda agent skill", "AI agent solana development"]
---

## Agent Skill for Orchestration
Expand Down Expand Up @@ -39,16 +39,12 @@

| Use case | Skill |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| For stablecoin payment flows and wallet integrations on Solana. | [payments](https://github.com/Lightprotocol/skills/tree/main/skills/payments) |
| For client development with Light Token APIs on Solana. | [light-token-client](https://github.com/Lightprotocol/skills/tree/main/skills/light-token-client) |
| For Solana program development with tokens and PDAs. | [light-sdk](https://github.com/Lightprotocol/skills/tree/main/skills/light-sdk) |
| For data pipelines, aggregators, or indexers, real-time account state streaming on Solana with light account hot/cold lifecycle tracking | [data-streaming](https://github.com/Lightprotocol/skills/tree/main/skills/data-streaming) |
| For token distribution on Solana 5000x cheaper than SPL (rewards, airdrops, depins, ...) | [token-distribution](https://github.com/Lightprotocol/skills/tree/main/skills/token-distribution) |
| For custom ZK Solana programs and privacy-preserving applications to prevent double spending | [zk-nullifier](https://github.com/Lightprotocol/skills/tree/main/skills/zk-nullifier) |
| For program development on Solana with infrequently accessed state, such as per-user state, DePIN registrations, ... | [solana-compression](https://github.com/Lightprotocol/skills/tree/main/skills/solana-compression) |
| For token use cases on Solana, such as token distribution, stablecoin payments and more. Works with Token-2022, Privy, Wallet Adapter similarly to SPL. | [compressed-token](https://github.com/Lightprotocol/skills/tree/main/skills/compressed-token) |

Check warning on line 42 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L42

Did you really mean 'Solana'?

Check warning on line 42 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L42

Did you really mean 'stablecoin'?
| For program development on Solana with infrequently accessed state, such as per-user state, DePIN registrations, nullifiers, or custom compressed accounts | [compressed-pda](https://github.com/Lightprotocol/skills/tree/main/skills/compressed-pda) |

Check warning on line 43 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L43

Did you really mean 'Solana'?

Check warning on line 43 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L43

Did you really mean 'nullifiers'?
| For custom ZK Solana programs and privacy-preserving applications to prevent double spending | [zk](https://github.com/Lightprotocol/skills/tree/main/skills/zk) |

Check warning on line 44 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L44

Did you really mean 'Solana'?
| For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation | [testing](https://github.com/Lightprotocol/skills/tree/main/skills/testing) |

Check warning on line 45 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L45

Did you really mean 'localnet'?

Check warning on line 45 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L45

Did you really mean 'devnet'?

Check warning on line 45 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L45

Did you really mean 'mainnet'?
| For questions about compressed accounts, Light SDK, Solana development, Claude Code features, or agent skills | [ask-mcp](https://github.com/Lightprotocol/skills/tree/main/skills/ask-mcp) |

Check warning on line 46 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L46

Did you really mean 'Solana'?

> View all skills here: https://github.com/Lightprotocol/skills.

All skills are included and are auto-discovered based on context. Ask about light-token, defi, payments, or program migration and the agent uses the relevant skill automatically.
All skills are included and are auto-discovered based on context. Ask about compressed tokens, compressed PDAs, ZK programs, or testing and the agent uses the relevant skill automatically.

Check warning on line 50 in ai-tools/agent-skills.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

ai-tools/agent-skills.mdx#L50

Did you really mean 'PDAs'?
2 changes: 1 addition & 1 deletion ai-tools/prompts.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "AI Prompts"
description: "Ready-to-use AI prompts for Light Protocol. Copy a prompt, paste into your AI coding agent, and let it implement the recipe in your project."
keywords: ["AI prompts solana", "AI coding prompts light protocol", "solana agent prompts", "cursor prompts solana", "claude code solana prompts", "light token AI prompts"]
keywords: ["AI prompts solana", "AI coding prompts light protocol", "solana agent prompts", "cursor prompts solana", "claude code solana prompts", "compressed token AI prompts"]
---

import AllPrompts from "/snippets/ai-prompts/all-prompts.mdx";
Expand Down
194 changes: 0 additions & 194 deletions api-reference/anchor.mdx

This file was deleted.

4 changes: 2 additions & 2 deletions api-reference/json-rpc-methods/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: JSON RPC Methods
description: Photon indexer methods for querying compressed state on Solana.

Check warning on line 3 in api-reference/json-rpc-methods/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/json-rpc-methods/overview.mdx#L3

Did you really mean 'Solana'?
sidebarTitle: "Overview"
---

<Note>
The Light Token SDK calls these methods internally via interface functions
The compressed token SDK calls these methods internally via interface functions
like `transferInterface` and `getAtaInterface`. You rarely need to call
them directly.

Expand All @@ -14,10 +14,10 @@
[legacy compressed tokens](/resources/legacy-compressed-tokens).
</Note>

| Solana RPC | Photon RPC |

Check warning on line 17 in api-reference/json-rpc-methods/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/json-rpc-methods/overview.mdx#L17

Did you really mean 'Solana'?
| :---------------------- | :-------------------------------- |
| getAccountInfo | getCompressedAccount |
| getBalance | getCompressedBalanceByOwner |

Check warning on line 20 in api-reference/json-rpc-methods/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/json-rpc-methods/overview.mdx#L20

Did you really mean 'getBalance'?
| getAccountInfo | getCompressedTokenAccountsByOwner |
| getTokenAccountBalance | getCompressedTokenBalancesByOwner |
| getSignaturesForAddress | getCompressionSignaturesForAddress|
Expand All @@ -30,7 +30,7 @@
<Tabs>
<Tab title="Mainnet">
```typescript
// Helius exposes Solana and Photon RPC endpoints through a single URL

Check warning on line 33 in api-reference/json-rpc-methods/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/json-rpc-methods/overview.mdx#L33

Did you really mean 'Helius'?

Check warning on line 33 in api-reference/json-rpc-methods/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/json-rpc-methods/overview.mdx#L33

Did you really mean 'Solana'?
import { createRpc, Rpc } from '@lightprotocol/stateless.js';

const RPC_ENDPOINT = 'https://mainnet.helius-rpc.com?api-key=YOUR_KEY';
Expand Down Expand Up @@ -71,7 +71,7 @@

## Methods

These methods are called internally by the Light Token SDK. Call them
These methods are called internally by the compressed token SDK. Call them
directly for custom indexing, block explorers, or debugging.

<table>
Expand Down
7 changes: 2 additions & 5 deletions api-reference/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
---
title: API Reference Overview
description: Reference documentation for Light Protocol SDKs, Anchor constraints, and JSON RPC methods.
description: Reference documentation for Light Protocol SDKs and JSON RPC methods.

Check warning on line 3 in api-reference/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/overview.mdx#L3

Did you really mean 'SDKs'?
---


<Card title="SDK Reference" icon="code" href="/api-reference/sdk">
TypeScript and Rust client SDKs for Light Token and ZK Compression.
</Card>
<Card title="Anchor Constraints" icon="anchor" href="/api-reference/anchor">
Syntax reference for <code>#[light_account]</code> constraints: init PDAs, token accounts, ATAs, and mints.
TypeScript and Rust client SDKs for Compressed Tokens and ZK Compression.

Check warning on line 8 in api-reference/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/overview.mdx#L8

Did you really mean 'SDKs'?
</Card>
<Card title="JSON RPC Methods" icon="terminal" href="/api-reference/json-rpc-methods/overview">
Photon indexer methods for querying compressed state on Solana.

Check warning on line 11 in api-reference/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/overview.mdx#L11

Did you really mean 'Solana'?
</Card>
2 changes: 1 addition & 1 deletion api-reference/sdk.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: SDK Reference
sidebarTitle: Reference
description: Client and program SDKs for Light Token and ZK Compression.
description: Client and program SDKs for Compressed Tokens and ZK Compression.

Check warning on line 4 in api-reference/sdk.mdx

View check run for this annotation

Mintlify / Mintlify Validation (luminouslabs-cc5545c6) - vale-spellcheck

api-reference/sdk.mdx#L4

Did you really mean 'SDKs'?
---

import SdkReference from "/snippets/overview-tables/sdk-reference.mdx";
Expand Down
Loading
Loading