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

> Volledige TypeScript API-referentie voor LiteSVM

Volledige API-documentatie voor het gebruik van LiteSVM met `@solana/kit` en het bijbehorende
plugin-ecosysteem.

## API-secties

<Columns cols={2}>
  <Card title="Accountbeheer" href="/developers/docs/tools/litesvm/typescript/api-reference/account-management">
    setAccount, getAccount, airdrop, getBalance
  </Card>
  <Card title="Transacties" href="/developers/docs/tools/litesvm/typescript/api-reference/transactions">
    sendTransaction, simulateTransaction, blockhash-beheer
  </Card>
  <Card title="Configuratie" href="/developers/docs/tools/litesvm/typescript/api-reference/configuration">
    Builder-methoden voor het configureren van LiteSVM
  </Card>
  <Card title="Tijd & sysvars" href="/developers/docs/tools/litesvm/typescript/api-reference/time-and-sysvars">
    Klokmanipulatie en toegang tot sysvars
  </Card>
</Columns>

## Snelle referentie

### Plugin-installatie

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

### Accountbeheer (client.svm)

| Methode                                 | Beschrijving                   |
| -------------------------------------- | ----------------------------- |
| `setAccount(account)`                  | Accountstatus rechtstreeks instellen    |
| `getAccount(address)`                  | Accountgegevens ophalen         |
| `getBalance(address)`                  | SOL-saldo ophalen               |
| `airdrop(address, lamports)`           | Een account van saldo voorzien               |
| `minimumBalanceForRentExemption(size)` | Rent-exempt minimum berekenen |

### Programmabeheer (client.svm)

| Methode                                | Beschrijving                |
| ------------------------------------- | -------------------------- |
| `addProgram(programId, bytes)`        | Programma laden vanuit bytes    |
| `addProgramFromFile(programId, path)` | Programma laden vanuit .so-bestand |

### Transacties (client.svm)

| Methode                    | Beschrijving                    |
| ------------------------- | ------------------------------ |
| `sendTransaction(tx)`     | Een transactie uitvoeren          |
| `simulateTransaction(tx)` | Simuleren zonder statuswijzigingen |
| `latestBlockhash()`       | Huidige blockhash ophalen          |
| `expireBlockhash()`       | Doorschakelen naar een nieuwe blockhash       |

### Configuratie (client.svm)

| Methode                      | Beschrijving                           |
| --------------------------- | ------------------------------------- |
| `withSigverify(bool)`       | Handtekeningverificatie in-/uitschakelen |
| `withBlockhashCheck(bool)`  | Blockhash-validatie in-/uitschakelen   |
| `withSysvars()`             | Sysvars terugzetten naar de standaardwaarden       |
| `withBuiltins()`            | Ingebouwde programma's inschakelen              |
| `withPrecompiles()`         | Voorgecompileerde programma's inschakelen           |
| `withTransactionHistory(n)` | De laatste n transacties opslaan             |
| `withComputeBudget(budget)` | Rekenlimieten instellen                    |
| `withLamports(amount)`      | Het saldo van de airdrop-faucet instellen        |
| `withLogBytesLimit(n)`      | Limiet voor logoutput instellen                  |

### Tijd & sysvars (client.svm)

| Methode                     | Beschrijving           |
| -------------------------- | --------------------- |
| `warpToSlot(slot)`         | Naar een specifiek slot springen |
| `getClock()`               | Klok-sysvar ophalen      |
| `getRent()`                | Rent-sysvar ophalen       |
| `getEpochSchedule()`       | Epoch-schema ophalen    |
| `getLastRestartSlot()`     | Laatste herstart-slot ophalen |
| `setLastRestartSlot(slot)` | Laatste herstart-slot instellen |

### RPC (client.rpc)

| Methode                           | Beschrijving                        |
| -------------------------------- | ---------------------------------- |
| `getAccountInfo(address)`        | Eén account ophalen (alleen base64) |
| `getMultipleAccounts(addresses)` | Meerdere accounts ophalen            |
| `getLatestBlockhash()`           | Huidige blockhash ophalen              |
