> ## 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::new()`                               | 创建新的 LiteSVM 基础测试环境                                                  |
| `LiteSVM::default()`                           | 创建一个不含 sysvar、程序或空投账户的空白实例。请使用 `LiteSVM::new()` |
| `airdrop(&Address, lamports)`                  | 为账户充入指定数量的 lamport                                              |
| `get_account(&Address)`                        | 返回与所提供地址的账户关联的所有信息                |
| `set_account(Address, Account)`                | 设置与所提供地址的账户关联的所有信息                   |
| `get_balance(&Address)`                        | 获取所提供账户地址的 lamport 余额                                   |
| `minimum_balance_for_rent_exemption(data_len)` | 返回使指定数据长度的账户免除 rent 所需的最低余额 |
| `add_program(program_id, &bytes)`              | 向测试环境中添加 SBF 程序                                                |
| `add_program_from_file(program_id, path)`      | 从指定文件向测试环境中添加 SBF 程序                        |
| `send_transaction(tx)`                         | 提交已签名的交易                                                               |
| `simulate_transaction(tx)`                     | 模拟交易，不修改状态                                            |
| `get_transaction(&signature)`                  | 从历史记录中获取交易                                                            |
| `latest_blockhash()`                           | 获取当前 blockhash                                                                     |
| `expire_blockhash()`                           | 强制使当前 blockhash 过期                                        |
| `warp_to_slot(slot)`                           | 将时钟快进到指定的 slot                                                      |
| `get_sysvar<T>()`                              | 从测试环境中获取 sysvar                                                    |
| `set_sysvar<T>(&value)`                        | 在测试环境中设置 sysvar                                                    |
| `with_feature_accounts()`                      | 在测试环境中包含功能开关（feature gate）账户                                     |
| `set_invocation_inspect_callback(callback)`    | 注册调用前/后回调（需要启用 `invocation-inspect-callback` 功能）  |
