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

# 구성

> TypeScript에서 LiteSVM을 구성하는 빌더 메서드

LiteSVM은 구성에 빌더 패턴을 사용합니다. 모든 메서드는 체이닝을 위해 `LiteSVM`을
반환합니다.

## 일반적인 테스트 설정

```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
  .withSigverify(false) // Skip signature verification (faster)
  .withBlockhashCheck(false) // Skip blockhash validation (simpler)
  .withTransactionHistory(100n); // Store last 100 transactions
```

`litesvm()` 클라이언트에는 sysvar, 빌트인 프로그램, 프리컴파일, 기본 프로그램이
이미 로드되어 있으므로, 일반적인 설정에서는 필요한 검사만 변경하면 됩니다.

## 서명 및 블록해시

### withSigverify

```typescript
withSigverify(sigverify: boolean): LiteSVM
```

서명 검증을 활성화하거나 비활성화합니다.

```typescript
// Disable for faster tests (default is enabled)
client.svm.withSigverify(false);

// Enable for production-like testing
client.svm.withSigverify(true);
```

<Info>
  서명 검증을 비활성화하면 테스트가 더 빨라지지만 실제 환경과는 덜 비슷해집니다.
</Info>

### withBlockhashCheck

```typescript
withBlockhashCheck(check: boolean): LiteSVM
```

블록해시 만료 검사를 활성화하거나 비활성화합니다.

```typescript
// Disable for simpler tests
client.svm.withBlockhashCheck(false);
```

## 프로그램 및 Sysvar

이 메서드들은 프로그램과 sysvar를 VM에 로드합니다. `litesvm()` 클라이언트에는
이미 모두 로드되어 있으므로, 클라이언트를 초기화하거나 `litesvm` 패키지의 순수한
`LiteSVM.default()` 인스턴스를 설정할 때만 필요합니다.

### withSysvars

```typescript
withSysvars(): LiteSVM
```

Clock, Rent, EpochSchedule 및 기타 sysvar를 기본값으로 초기화합니다.
Sysvar는 새 클라이언트에 이미 포함되어 있으므로, 변경 사항을 되돌릴 때만 필요합니다.
`setClock` 또는 `warpToSlot` 이후에 호출하면 설정한 clock이 삭제됩니다.

```typescript
client.svm.setClock(myClock);
client.svm.withSysvars(); // the clock is back to its default
```

### withBuiltins

```typescript
withBuiltins(): LiteSVM
```

런타임의 빌트인 프로그램인 System Program, BPF 로더, Vote, Compute Budget을
추가합니다.

```typescript
client.svm.withBuiltins();
```

### withPrecompiles

```typescript
withPrecompiles(): LiteSVM
```

서명 검증 프리컴파일인 ed25519, secp256k1, secp256r1을 추가합니다.

```typescript
client.svm.withPrecompiles();
```

### withDefaultPrograms

```typescript
withDefaultPrograms(): LiteSVM
```

기본 프로그램인 Token, Token-2022, Associated Token Account, Memo,
Stake, Address Lookup Table을 추가합니다.

```typescript
client.svm.withDefaultPrograms();
```

## 리소스 제한

### withLamports

```typescript
withLamports(lamports: bigint): LiteSVM
```

`airdrop()`이 자금을 가져오는 내부 faucet 계정의 잔액을 설정합니다.
이 잔액보다 큰 에어드롭은 실패합니다.

```typescript
client.svm.withLamports(1_000_000_000n); // the faucet holds 1 SOL
```

### withLogBytesLimit

```typescript
withLogBytesLimit(limit?: bigint): LiteSVM
```

로그 출력 바이트 제한을 설정합니다.

```typescript
client.svm.withLogBytesLimit(10000n);
```

### withTransactionHistory

```typescript
withTransactionHistory(capacity: bigint): LiteSVM
```

트랜잭션 기록 저장을 활성화합니다.

```typescript
// Store last 100 transactions
client.svm.withTransactionHistory(100n);
```

## 기능 세트

### withFeatureSet

```typescript
withFeatureSet(featureSet: FeatureSet): LiteSVM
```

특정 Solana 버전을 테스트하기 위해 기능 세트를 구성합니다.
