Examples
Examples
Complete TypeScript examples for LiteSVM
TypeScript Examples
Complete, runnable examples demonstrating LiteSVM usage with @solana/kit.
SOL Transfer
Build and send a SOL transfer transaction
Account Setup
Set up test accounts and state
Program Testing
Load and test custom programs
Time-Based Testing
Test time-dependent logic
Running Examples
All examples can be run with tsx though some addresses/variables require replacing place holders with actual values.
# Install dependencies
pnpm add @solana/kit @solana/kit-plugins @solana-program/system
# Run an example
npx tsx example.ts