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

# Configuration

> Méthodes de type builder pour configurer LiteSVM en TypeScript

LiteSVM utilise un patron builder pour la configuration. Toutes les méthodes renvoient `LiteSVM`
pour permettre le chaînage.

## Configuration de test typique

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

Un client `litesvm()` a déjà chargé les sysvars, les programmes intégrés, les
précompilations et les programmes par défaut, de sorte qu'une configuration typique se limite à modifier
les vérifications nécessaires.

## Signature et blockhash

### withSigverify

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

Active ou désactive la vérification des signatures.

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

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

<Info>
  Désactiver la vérification des signatures accélère les tests, mais les rend moins réalistes.
</Info>

### withBlockhashCheck

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

Active ou désactive la vérification de l'expiration du blockhash.

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

## Programmes et sysvars

Ces méthodes chargent des programmes et des sysvars dans la VM. Un client `litesvm()` les possède
déjà tous ; vous n'en avez donc besoin que pour réinitialiser un client ou pour configurer
une instance `LiteSVM.default()` vierge issue du package `litesvm`.

### withSysvars

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

Réinitialise Clock, Rent, EpochSchedule et les autres sysvars à leurs valeurs par défaut.
Les sysvars sont déjà disponibles sur un nouveau client ; vous n'en avez donc besoin que pour annuler
des modifications. L'appeler après `setClock` ou `warpToSlot` écrase votre horloge.

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

### withBuiltins

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

Ajoute les programmes intégrés du runtime : le System Program, les loaders BPF, Vote
et Compute Budget.

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

### withPrecompiles

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

Ajoute les précompilations de vérification de signature : ed25519, secp256k1 et secp256r1.

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

### withDefaultPrograms

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

Ajoute les programmes par défaut : Token, Token-2022, Associated Token Account, Memo,
Stake et Address Lookup Table.

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

## Limites de ressources

### withLamports

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

Définit le solde du compte faucet interne sur lequel `airdrop()` prélève.
Les airdrops supérieurs à ce solde échouent.

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

### withLogBytesLimit

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

Définit la limite en octets de la sortie des journaux.

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

### withTransactionHistory

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

Active le stockage de l'historique des transactions.

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

## Ensembles de fonctionnalités

### withFeatureSet

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

Configure l'ensemble de fonctionnalités pour tester des versions spécifiques de Solana.
