Typescript Client
- @lightprotocol/stateless.js - Core compression SDK to create or interact with compressed accounts via RPC interface
- @lightprotocol/compressed-token - SDK to mint, transfer, compress/ decompress, or delegate compressed tokens
Rust Client
- For devnet and mainnet use
light-client- An RPC client for compressed accounts and tokens. Find a full list of JSON RPC methods here.
- It connects to the Photon indexer that tracks compressed state to query compressed accounts and the prover service for validity proofs.
- For local testing use
light-program-test- Initializes in-process Solana VM via LiteSVM with auto-funded payer, local prover server and in-memory indexer.
LightClientandLightProgramTestimplement the sameRpcandIndexertraits. Seamlessly switch betweenlight-program-test, local test validator, and public Solana networks.
Installation
rust-client.toml
Environments
- Localnet
- Devnet
Start a local test-validator with the below command. It will start a single-node Solana cluster, an RPC node, and a prover node at ports 8899, 8784, and 3001.See the CLI Installation Guide for more.