> ## 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 у TypeScript

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()` уже має завантажені sysvars, вбудовані програми,
прекомпільовані програми (precompiles) та програми за замовчуванням, тому типове налаштування змінює
лише потрібні перевірки.

## Підпис і blockhash

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

Увімкнення або вимкнення перевірки терміну дії blockhash.

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

## Програми та sysvars

Ці методи завантажують програми та sysvars у віртуальну машину. Клієнт `litesvm()`
уже має все це, тому вони потрібні лише для скидання клієнта або для налаштування
порожнього екземпляра `LiteSVM.default()` із пакета `litesvm`.

### withSysvars

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

Скидає Clock, Rent, EpochSchedule та інші sysvars до значень за замовчуванням.
Sysvars уже доступні в новому клієнті, тож це потрібно лише для скасування
змін. Якщо викликати цей метод після `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()` бере кошти.
Аірдропи, що перевищують цей баланс, завершуються помилкою.

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