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

# Konfigurasi

> Metode builder untuk mengonfigurasi LiteSVM di TypeScript

LiteSVM menggunakan pola builder untuk konfigurasi. Semua metode mengembalikan `LiteSVM`
agar dapat dirangkai (chaining).

## Pengaturan Pengujian Umum

```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
```

Klien `litesvm()` sudah memuat sysvar, program builtin, precompile, dan
program default, sehingga pengaturan umum hanya mengubah pemeriksaan
yang diperlukan.

## Tanda Tangan & Blockhash

### withSigverify

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

Aktifkan atau nonaktifkan verifikasi tanda tangan.

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

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

<Info>
  Menonaktifkan verifikasi tanda tangan membuat pengujian lebih cepat tetapi kurang realistis.
</Info>

### withBlockhashCheck

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

Aktifkan atau nonaktifkan pemeriksaan kedaluwarsa blockhash.

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

## Program & Sysvar

Metode-metode ini memuat program dan sysvar ke dalam VM. Klien `litesvm()`
sudah memiliki semuanya, jadi Anda hanya memerlukannya untuk mereset klien atau untuk menyiapkan
instance `LiteSVM.default()` kosong dari paket `litesvm`.

### withSysvars

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

Reset Clock, Rent, EpochSchedule, dan sysvar lainnya ke nilai default.
Sysvar sudah tersedia pada klien baru, jadi Anda hanya memerlukan ini untuk membatalkan
perubahan. Memanggilnya setelah `setClock` atau `warpToSlot` akan membuang clock Anda.

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

### withBuiltins

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

Tambahkan program builtin runtime: System Program, BPF loader, Vote,
dan Compute Budget.

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

### withPrecompiles

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

Tambahkan precompile verifikasi tanda tangan: ed25519, secp256k1, dan secp256r1.

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

### withDefaultPrograms

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

Tambahkan program default: Token, Token-2022, Associated Token Account, Memo,
Stake, dan Address Lookup Table.

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

## Batas Sumber Daya

### withLamports

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

Atur saldo akun faucet internal yang menjadi sumber `airdrop()`.
Airdrop yang melebihi saldo ini akan gagal.

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

### withLogBytesLimit

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

Atur batas byte keluaran log.

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

### withTransactionHistory

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

Aktifkan penyimpanan riwayat transaksi.

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

## Set Fitur

### withFeatureSet

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

Konfigurasikan set fitur untuk menguji versi Solana tertentu.
