> ## 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 Go API-referentie voor LiteSVM

Volledige API-documentatie voor `litesvm-go` v0.3.0 en hoger. Methodenamen
volgen waar mogelijk de Rust-`LiteSVM`-builder; getter-/setterparen hanteren
dezelfde Go-conventie (`Clock` / `SetClock`, `Rent` / `SetRent`, ...). Accounts zijn
gewone `*solana.Account`-waarden en sysvars zijn de types uit
`github.com/gagliardetto/solana-go/sysvar`.

## API-secties

<Columns cols={2}>
  <Card title="Accountbeheer" href="/developers/docs/tools/litesvm/go/api-reference/account-management">
    Airdrop, Balance, GetAccount, SetAccount, NewAccount, programma's
  </Card>
  <Card title="Transacties" href="/developers/docs/tools/litesvm/go/api-reference/transactions">
    Legacy- en versioned transacties verzenden/simuleren, TxOutcome
  </Card>
  <Card title="Configuratie" href="/developers/docs/tools/litesvm/go/api-reference/configuration">
    Schakelaars voor sigverify, blockhash-controle, geschiedenis, loglimieten, standaardprogramma's
  </Card>
  <Card title="Tijd en sysvars" href="/developers/docs/tools/litesvm/go/api-reference/time-and-sysvars">
    WarpToSlot, Clock, Rent, EpochSchedule, EpochRewards, SlotHashes, SlotHistory, StakeHistory
  </Card>
</Columns>

## Snelle referentie

### Handle instellen

```go
import (
    litesvm "github.com/LiteSVM/litesvm-go"
    solana "github.com/gagliardetto/solana-go"
)

svm, err := litesvm.New()
if err != nil {
    // handle error
}
defer svm.Close()
```

### Accountbeheer

| Methode                                                                       | Beschrijving                                          |
| ---------------------------------------------------------------------------- | ---------------------------------------------------- |
| `Airdrop(pubkey, lamports) error`                                            | Een account van saldo voorzien                                      |
| `Balance(pubkey) (uint64, bool, error)`                                      | SOL-saldo; de bool geeft aan of het account bestaat |
| `GetAccount(pubkey) *solana.Account`                                         | Kopie van het account (nil als het ontbreekt)                 |
| `SetAccount(pubkey, *solana.Account) error`                                  | Accountstatus rechtstreeks opslaan                         |
| `MinimumBalanceForRentExemption(dataLen int) (uint64, error)`                | Het minimum voor rent-vrijstelling berekenen                          |
| `NewAccount(lamports, data, owner, executable, rentEpoch) (*solana.Account, error)` | Een account bouwen voor SetAccount (een `&solana.Account{...}`-literal werkt ook) |

### Programmabeheer

| Methode                                                   | Beschrijving                             |
| -------------------------------------------------------- | --------------------------------------- |
| `AddProgram(programID, bytes) error`                     | Programma laden vanuit bytes                 |
| `AddProgramFromFile(programID, path) error`              | Programma laden vanuit een `.so`-bestand            |
| `AddProgramWithLoader(programID, bytes, loaderID) error` | Laden onder een specifieke loader (geavanceerd) |

### Transacties

| Methode                                                                        | Beschrijving                                                                     |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| `SendLegacyTransaction(txBytes) (*TxOutcome, error)`                          | Een legacy transactie uitvoeren                                                    |
| `SendVersionedTransaction(txBytes) (*TxOutcome, error)`                       | Een v0+-transactie uitvoeren                                                       |
| `SimulateLegacyTransaction(txBytes) (*TxOutcome, error)`                      | Simuleren zonder statuswijzigingen                                                  |
| `SimulateVersionedTransaction(txBytes) (*TxOutcome, error)`                   | v0+ simuleren zonder statuswijzigingen                                              |
| `LatestBlockhash() (solana.Hash, error)`                                      | Huidige blockhash                                                               |
| `ExpireBlockhash() error`                                                     | Doorgaan naar een nieuwe blockhash                                                      |
| `GetTransaction(signature) *TxOutcome`                                        | Transactie opzoeken in de geschiedenis (nil als die ontbreekt)                                  |
| `litesvm.BuildTransferTx(payerSeed, to, lamports, blockhash) ([]byte, error)` | Testhulpfunctie die een ondertekende legacy overboeking bouwt zonder `solana-go` te hoeven importeren |

### Configuratie

| Methode                                         | Beschrijving                                             |
| ---------------------------------------------- | ------------------------------------------------------- |
| `SetSigverify(bool) error`                     | Handtekeningverificatie in-/uitschakelen                 |
| `Sigverify() (bool, error)`                    | De huidige instelling uitlezen                                |
| `SetBlockhashCheck(bool) error`                | Blockhash-validatie in-/uitschakelen                   |
| `SetTransactionHistory(int) error`             | Capaciteit van de transactiegeschiedenis in het geheugen (0 schakelt uit)           |
| `SetLogBytesLimit(int) error`                  | Limiet voor logbytes per transactie (negatief = onbeperkt)              |
| `SetLamports(uint64) error`                    | Het saldo van de airdrop-pool resetten                          |
| `SetSysvars() error`                           | Sysvars terugzetten naar de standaardwaarden                               |
| `SetBuiltins() error`                          | Ingebouwde programma's opnieuw laden                                |
| `SetDefaultPrograms() error`                   | SPL Token, Memo enz. opnieuw laden                            |
| `SetPrecompiles() error`                       | ed25519-/secp256k1-precompiles inschakelen                  |
| `WithNativeMints() error`                      | De wrapped-SOL-mint initialiseren                                   |
| `SetFeatureSet(*FeatureSet) error`             | Een set feature gates installeren                              |
| `SetComputeBudget(ComputeBudget) error`        | Een compute budget toepassen                                  |
| `ComputeBudget() (ComputeBudget, bool, error)` | Het huidige budget uitlezen (de bool geeft aan of het "expliciet is ingesteld") |

### Tijd en sysvars

| Methode                                       | Beschrijving                          |
| -------------------------------------------- | ------------------------------------ |
| `WarpToSlot(slot uint64) error`              | Springen naar een specifiek slot              |
| `Clock() (*sysvar.Clock, error)`             | De Clock-sysvar uitlezen                |
| `SetClock(*sysvar.Clock) error`              | De Clock-sysvar overschrijven           |
| `Rent() (*sysvar.Rent, error)`               | De Rent-sysvar uitlezen                 |
| `SetRent(*sysvar.Rent) error`                | De Rent-sysvar overschrijven            |
| `EpochSchedule() (*sysvar.EpochSchedule, error)` | De EpochSchedule-sysvar uitlezen    |
| `SetEpochSchedule(*sysvar.EpochSchedule) error` | De EpochSchedule-sysvar overschrijven |
| `EpochRewards() (*sysvar.EpochRewards, error)` | De EpochRewards-sysvar uitlezen       |
| `SetEpochRewards(*sysvar.EpochRewards) error` | De EpochRewards-sysvar overschrijven   |
| `LastRestartSlot() (*sysvar.LastRestartSlot, error)` | last-restart-slot uitlezen       |
| `SetLastRestartSlot(*sysvar.LastRestartSlot) error` | last-restart-slot instellen         |
| `SlotHashes() (sysvar.SlotHashes, error)`    | De SlotHashes-sysvar uitlezen           |
| `SetSlotHashes(sysvar.SlotHashes) error`     | De SlotHashes-sysvar overschrijven      |
| `SlotHistory() (*sysvar.SlotHistory, error)` | De SlotHistory-sysvar uitlezen          |
| `SetSlotHistory(*sysvar.SlotHistory) error`  | De SlotHistory-sysvar overschrijven     |
| `StakeHistory() (sysvar.StakeHistory, error)` | De StakeHistory-sysvar uitlezen        |
| `SetStakeHistory(sysvar.StakeHistory) error` | De StakeHistory-sysvar overschrijven    |

### Hulpfuncties

| Methode                     | Beschrijving                                                    |
| -------------------------- | -------------------------------------------------------------- |
| `litesvm.Version() string` | Omschrijving van de engine (`litesvm-go (mithril svm, pure go)`) |
