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

# Konfigurointi

> Builder-metodit LiteSVM:n konfigurointiin TypeScriptissä

LiteSVM käyttää konfigurointiin builder-mallia. Kaikki metodit palauttavat `LiteSVM`-olion
ketjutusta varten.

## Tyypillinen testiasetus

```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()`-asiakkaaseen on jo ladattu sysvarit, sisäänrakennetut ohjelmat,
precompile-ohjelmat ja oletusohjelmat, joten tyypillisessä asetuksessa muutetaan
vain tarvittavia tarkistuksia.

## Allekirjoitus ja blockhash

### withSigverify

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

Ota allekirjoitusten varmennus käyttöön tai poista se käytöstä.

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

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

<Info>
  Allekirjoitusten varmennuksen poistaminen käytöstä nopeuttaa testejä, mutta tekee niistä vähemmän realistisia.
</Info>

### withBlockhashCheck

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

Ota blockhashin vanhenemisen tarkistus käyttöön tai poista se käytöstä.

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

## Ohjelmat ja sysvarit

Nämä metodit lataavat ohjelmia ja sysvareja VM:ään. `litesvm()`-asiakkaalla ne
kaikki ovat jo valmiina, joten tarvitset niitä vain asiakkaan nollaamiseen tai
`litesvm`-paketin paljaan `LiteSVM.default()`-instanssin määrittämiseen.

### withSysvars

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

Palauta Clock, Rent, EpochSchedule ja muut sysvarit oletusarvoihinsa.
Sysvarit ovat jo käytettävissä uudessa asiakkaassa, joten tarvitset tätä vain
muutosten kumoamiseen. Jos kutsut sitä `setClock`- tai `warpToSlot`-kutsun jälkeen, kellosi nollautuu.

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

### withBuiltins

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

Lisää ajoympäristön sisäänrakennetut ohjelmat: System Program, BPF-lataajat, Vote
ja Compute Budget.

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

### withPrecompiles

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

Lisää allekirjoitusten varmennuksen precompile-ohjelmat: ed25519, secp256k1 ja secp256r1.

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

### withDefaultPrograms

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

Lisää oletusohjelmat: Token, Token-2022, Associated Token Account, Memo,
Stake ja Address Lookup Table.

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

## Resurssirajat

### withLamports

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

Aseta sisäisen faucet-tilin saldo, josta `airdrop()` nostaa varat.
Tätä saldoa suuremmat airdropit epäonnistuvat.

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

### withLogBytesLimit

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

Aseta lokitulosteen tavuraja.

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

### withTransactionHistory

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

Ota tapahtumahistorian tallennus käyttöön.

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

## Ominaisuusjoukot

### withFeatureSet

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

Määritä ominaisuusjoukko tiettyjen Solana-versioiden testaamista varten.
