> ## 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="시간 및 Sysvar" href="/developers/docs/tools/litesvm/typescript/api-reference/time-and-sysvars">
    Clock 조작 및 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)`      | 에어드롭 파우셋 잔액 설정        |
| `withLogBytesLimit(n)`      | 로그 출력 한도 설정                  |

### 시간 및 Sysvar (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 조회              |
