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

# APIリファレンス

> LiteSVM向けの完全なTypeScript APIリファレンス

`@solana/kit` とそのプラグインエコシステムでLiteSVMを使用するための完全なAPIドキュメントです。

## APIセクション

<Columns cols={2}>
  <Card title="アカウント管理" href="/developers/docs/tools/litesvm/typescript/api-reference/account-management">
    setAccount, getAccount, airdrop, getBalance
  </Card>
  <Card title="トランザクション" href="/developers/docs/tools/litesvm/typescript/api-reference/transactions">
    sendTransaction, simulateTransaction, blockhash管理
  </Card>
  <Card title="設定" href="/developers/docs/tools/litesvm/typescript/api-reference/configuration">
    LiteSVMを設定するためのビルダーメソッド
  </Card>
  <Card title="時間とSysvars" href="/developers/docs/tools/litesvm/typescript/api-reference/time-and-sysvars">
    クロック操作とsysvarへのアクセス
  </Card>
</Columns>

## クイックリファレンス

### プラグインのセットアップ

```typescript
import { createClient, generateKeyPairSigner } from "@solana/kit";
import { litesvm } from "@solana/kit-plugin-litesvm";
import { signer } from "@solana/kit-plugin-signer";

const mySigner = await generateKeyPairSigner();
const client = createClient().use(signer(mySigner)).use(litesvm());
// client.svm: LiteSVM instance
// client.rpc: RPC compatibility layer
```

### アカウント管理 (client.svm)

| メソッド                                 | 説明                   |
| -------------------------------------- | ----------------------------- |
| `setAccount(account)`                  | アカウントの状態を直接設定    |
| `getAccount(address)`                  | アカウントデータを取得         |
| `getBalance(address)`                  | SOL残高を取得               |
| `airdrop(address, lamports)`           | アカウントに資金を供給               |
| `minimumBalanceForRentExemption(size)` | rent免除に必要な最小額を計算 |

### プログラム管理 (client.svm)

| メソッド                                | 説明                |
| ------------------------------------- | -------------------------- |
| `addProgram(programId, bytes)`        | バイト列からプログラムを読み込む    |
| `addProgramFromFile(programId, path)` | .soファイルからプログラムを読み込む |

### トランザクション (client.svm)

| メソッド                    | 説明                    |
| ------------------------- | ------------------------------ |
| `sendTransaction(tx)`     | トランザクションを実行          |
| `simulateTransaction(tx)` | 状態を変更せずにシミュレーション |
| `latestBlockhash()`       | 現在のblockhashを取得          |
| `expireBlockhash()`       | 新しいblockhashに進める       |

### 設定 (client.svm)

| メソッド                      | 説明                           |
| --------------------------- | ------------------------------------- |
| `withSigverify(bool)`       | 署名検証の有効化/無効化 |
| `withBlockhashCheck(bool)`  | blockhash検証の有効化/無効化   |
| `withSysvars()`             | sysvarをデフォルトにリセット       |
| `withBuiltins()`            | 組み込みプログラムを有効化              |
| `withPrecompiles()`         | プリコンパイル済みプログラムを有効化           |
| `withTransactionHistory(n)` | 直近n件のトランザクションを保存             |
| `withComputeBudget(budget)` | コンピュート制限を設定                    |
| `withLamports(amount)`      | airdropファウセットの残高を設定        |
| `withLogBytesLimit(n)`      | ログ出力の上限を設定                  |

### 時間とSysvars (client.svm)

| メソッド                     | 説明           |
| -------------------------- | --------------------- |
| `warpToSlot(slot)`         | 特定のslotにジャンプ |
| `getClock()`               | clock sysvarを取得      |
| `getRent()`                | rent sysvarを取得       |
| `getEpochSchedule()`       | epochスケジュールを取得    |
| `getLastRestartSlot()`     | 最後の再起動slotを取得 |
| `setLastRestartSlot(slot)` | 最後の再起動slotを設定 |

### RPC (client.rpc)

| メソッド                           | 説明                        |
| -------------------------------- | ---------------------------------- |
| `getAccountInfo(address)`        | 単一のアカウントを取得 (base64のみ) |
| `getMultipleAccounts(addresses)` | 複数のアカウントを取得            |
| `getLatestBlockhash()`           | 現在のblockhashを取得              |
