> ## 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.

# 示例

> LiteSVM 完整的 TypeScript 示例

完整、可运行的示例,演示如何结合 `@solana/kit` 使用 LiteSVM。

<Columns cols={2}>
  <Card title="SOL 转账" href="/developers/docs/tools/litesvm/typescript/examples/sol-transfer">
    构建并发送 SOL 转账交易
  </Card>
  <Card title="账户设置" href="/developers/docs/tools/litesvm/typescript/examples/account-setup">
    设置测试账户和状态
  </Card>
  <Card title="程序测试" href="/developers/docs/tools/litesvm/typescript/examples/program-testing">
    加载并测试自定义程序
  </Card>
  <Card title="基于时间的测试" href="/developers/docs/tools/litesvm/typescript/examples/time-based">
    测试与时间相关的逻辑
  </Card>
</Columns>

## 运行示例

所有示例都可以使用 `tsx` 运行,但部分地址/变量需要
将占位符替换为实际值。

```bash
# Install dependencies
npm install @solana/kit @solana/kit-plugin-litesvm @solana/kit-plugin-signer @solana-program/system

# Run an example
npx tsx example.ts
```
