---
title: Examples
description: Complete test examples for common Solana testing scenarios
---

## Overview

This section provides complete, ready-to-use examples for common Solana testing
scenarios with LiteSVM. Each example includes full code with explanations.

## Available Examples

<Cards>
  <Card
    title="SOL Transfer"
    description="Test transferring SOL between accounts"
    href="/docs/tools/litesvm/examples/sol-transfer"
  />
  <Card
    title="Program Deployment"
    description="Deploy and call a simple program"
    href="/docs/tools/litesvm/examples/program-deployment"
  />
  <Card
    title="PDA Creation"
    description="Create and interact with Program Derived Addresses"
    href="/docs/tools/litesvm/examples/pda-creation"
  />
  <Card
    title="Error Handling"
    description="Test error conditions and edge cases"
    href="/docs/tools/litesvm/examples/error-handling"
  />
  <Card
    title="SPL Token Operations"
    description="Create mints, token accounts, and transfer tokens"
    href="/docs/tools/litesvm/examples/spl-tokens"
  />
  <Card
    title="Cross-Program Invocation"
    description="Test programs calling other programs"
    href="/docs/tools/litesvm/examples/cpi"
  />
  <Card
    title="Time-Based Testing"
    description="Test features that depend on slots or timestamps"
    href="/docs/tools/litesvm/examples/time-based"
  />
  <Card
    title="Github Examples"
    description="View several linked projects using LiteSVM tests"
    href="/docs/tools/litesvm/examples/complete-examples"
  />
</Cards>
