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

# API-Referenz

> Vollständige TypeScript-API-Referenz für LiteSVM

Vollständige API-Dokumentation für die Verwendung von LiteSVM mit `@solana/kit` und dessen
Plugin-Ökosystem.

## API-Bereiche

<Columns cols={2}>
  <Card title="Kontenverwaltung" href="/developers/docs/tools/litesvm/typescript/api-reference/account-management">
    setAccount, getAccount, airdrop, getBalance
  </Card>
  <Card title="Transaktionen" href="/developers/docs/tools/litesvm/typescript/api-reference/transactions">
    sendTransaction, simulateTransaction, Blockhash-Verwaltung
  </Card>
  <Card title="Konfiguration" href="/developers/docs/tools/litesvm/typescript/api-reference/configuration">
    Builder-Methoden zur Konfiguration von LiteSVM
  </Card>
  <Card title="Zeit & Sysvars" href="/developers/docs/tools/litesvm/typescript/api-reference/time-and-sysvars">
    Clock-Manipulation und Sysvar-Zugriff
  </Card>
</Columns>

## Kurzreferenz

### Plugin-Einrichtung

```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: LiteSVM instance
// client.rpc: RPC compatibility layer
```

### Kontenverwaltung (client.svm)

| Methode                                 | Beschreibung                   |
| -------------------------------------- | ----------------------------- |
| `setAccount(account)`                  | Kontenstatus direkt setzen    |
| `getAccount(address)`                  | Kontendaten abrufen         |
| `getBalance(address)`                  | SOL-Guthaben abrufen               |
| `airdrop(address, lamports)`           | Konten mit Guthaben ausstatten               |
| `minimumBalanceForRentExemption(size)` | Mindestbetrag für die rent-Befreiung berechnen |

### Programmverwaltung (client.svm)

| Methode                                | Beschreibung                |
| ------------------------------------- | -------------------------- |
| `addProgram(programId, bytes)`        | Programm aus Bytes laden    |
| `addProgramFromFile(programId, path)` | Programm aus .so-Datei laden |

### Transaktionen (client.svm)

| Methode                    | Beschreibung                    |
| ------------------------- | ------------------------------ |
| `sendTransaction(tx)`     | Transaktion ausführen          |
| `simulateTransaction(tx)` | Simulation ohne Zustandsänderungen |
| `latestBlockhash()`       | Aktuellen Blockhash abrufen          |
| `expireBlockhash()`       | Zum nächsten Blockhash wechseln       |

### Konfiguration (client.svm)

| Methode                      | Beschreibung                           |
| --------------------------- | ------------------------------------- |
| `withSigverify(bool)`       | Signaturprüfung aktivieren/deaktivieren |
| `withBlockhashCheck(bool)`  | Blockhash-Validierung aktivieren/deaktivieren   |
| `withSysvars()`             | Sysvars auf Standardwerte zurücksetzen       |
| `withBuiltins()`            | Integrierte Programme aktivieren              |
| `withPrecompiles()`         | Vorkompilierte Programme aktivieren           |
| `withTransactionHistory(n)` | Die letzten n Transaktionen speichern             |
| `withComputeBudget(budget)` | Rechenlimits festlegen                    |
| `withLamports(amount)`      | Guthaben des Airdrop-Faucets festlegen        |
| `withLogBytesLimit(n)`      | Limit für die Log-Ausgabe festlegen                  |

### Zeit & Sysvars (client.svm)

| Methode                     | Beschreibung           |
| -------------------------- | --------------------- |
| `warpToSlot(slot)`         | Zu einem bestimmten slot springen |
| `getClock()`               | Clock-Sysvar abrufen      |
| `getRent()`                | rent-Sysvar abrufen       |
| `getEpochSchedule()`       | epoch-Zeitplan abrufen    |
| `getLastRestartSlot()`     | Letzten Neustart-slot abrufen |
| `setLastRestartSlot(slot)` | Letzten Neustart-slot festlegen |

### RPC (client.rpc)

| Methode                           | Beschreibung                        |
| -------------------------------- | ---------------------------------- |
| `getAccountInfo(address)`        | Einzelne Konten abrufen (nur base64) |
| `getMultipleAccounts(addresses)` | Mehrere Konten abrufen            |
| `getLatestBlockhash()`           | Aktuellen Blockhash abrufen              |
