> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# 示例

> 适用于常见 Solana 测试场景的完整测试示例

## 概述

本节提供使用 LiteSVM 进行常见 Solana 测试场景的完整、可直接使用的示例。
每个示例均包含完整代码及说明。

## 可用示例

<Columns cols={2}>
  <Card title="SOL 转账" href="/developers/docs/tools/litesvm/examples/sol-transfer">
    测试账户之间的 SOL 转账
  </Card>
  <Card title="程序部署" href="/developers/docs/tools/litesvm/examples/program-deployment">
    部署并调用一个简单的程序
  </Card>
  <Card title="PDA 创建" href="/developers/docs/tools/litesvm/examples/pda-creation">
    创建 Program Derived Address 并与之交互
  </Card>
  <Card title="错误处理" href="/developers/docs/tools/litesvm/examples/error-handling">
    测试错误情况和边界情况
  </Card>
  <Card title="SPL 代币操作" href="/developers/docs/tools/litesvm/examples/spl-tokens">
    创建 mint、token account 并转移代币
  </Card>
  <Card title="Cross Program Invocation" href="/developers/docs/tools/litesvm/examples/cpi">
    测试程序调用其他程序
  </Card>
  <Card title="基于时间的测试" href="/developers/docs/tools/litesvm/examples/time-based">
    测试依赖 slot 或时间戳的功能
  </Card>
  <Card title="GitHub 示例" href="/developers/docs/tools/litesvm/examples/complete-examples">
    查看多个使用 LiteSVM 测试的相关项目
  </Card>
</Columns>
