> ## 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 Go-API-Referenz für LiteSVM

Vollständige API-Dokumentation für `litesvm-go` ab v0.3.0. Die Methodennamen
orientieren sich, wo möglich, am Rust-Builder `LiteSVM`; Getter-/Setter-Paare folgen
derselben Go-Konvention (`Clock` / `SetClock`, `Rent` / `SetRent`, ...). Konten sind
einfache `*solana.Account`-Werte, und Sysvars sind die Typen aus
`github.com/gagliardetto/solana-go/sysvar`.

## API-Bereiche

<Columns cols={2}>
  <Card title="Verwaltung von Konten" href="/developers/docs/tools/litesvm/go/api-reference/account-management">
    Airdrop, Balance, GetAccount, SetAccount, NewAccount, Programme
  </Card>
  <Card title="Transaktionen" href="/developers/docs/tools/litesvm/go/api-reference/transactions">
    Legacy- und versionierte Transaktionen senden / simulieren, TxOutcome
  </Card>
  <Card title="Konfiguration" href="/developers/docs/tools/litesvm/go/api-reference/configuration">
    Schalter für sigverify, Blockhash-Prüfung, Verlauf, Log-Limits, Standardprogramme
  </Card>
  <Card title="Zeit & Sysvars" href="/developers/docs/tools/litesvm/go/api-reference/time-and-sysvars">
    WarpToSlot, Clock, Rent, EpochSchedule, EpochRewards, SlotHashes, SlotHistory, StakeHistory
  </Card>
</Columns>

## Kurzreferenz

### Handle-Einrichtung

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

### Verwaltung von Konten

| Methode                                                                       | Beschreibung                                          |
| ---------------------------------------------------------------------------- | ---------------------------------------------------- |
| `Airdrop(pubkey, lamports) error`                                            | Konten mit Guthaben ausstatten                                      |
| `Balance(pubkey) (uint64, bool, error)`                                      | SOL-Guthaben; bool gibt an, ob es existiert |
| `GetAccount(pubkey) *solana.Account`                                         | Kopie (nil, falls nicht vorhanden)                 |
| `SetAccount(pubkey, *solana.Account) error`                                  | Zustand von Konten direkt speichern                         |
| `MinimumBalanceForRentExemption(dataLen int) (uint64, error)`                | Mindestbetrag für die Rent-Befreiung berechnen                          |
| `NewAccount(lamports, data, owner, executable, rentEpoch) (*solana.Account, error)` | Erstellt Konten für SetAccount (ein Literal `&solana.Account{...}` funktioniert ebenfalls) |

### Verwaltung von Programmen

| Methode                                                   | Beschreibung                             |
| -------------------------------------------------------- | --------------------------------------- |
| `AddProgram(programID, bytes) error`                     | Programm aus Bytes laden                 |
| `AddProgramFromFile(programID, path) error`              | Programm aus `.so`-Datei laden            |
| `AddProgramWithLoader(programID, bytes, loaderID) error` | Mit einem bestimmten Loader laden (fortgeschritten) |

### Transaktionen

| Methode                                                                        | Beschreibung                                                                     |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| `SendLegacyTransaction(txBytes) (*TxOutcome, error)`                          | Legacy-Transaktion ausführen                                                    |
| `SendVersionedTransaction(txBytes) (*TxOutcome, error)`                       | v0+-Transaktion ausführen                                                       |
| `SimulateLegacyTransaction(txBytes) (*TxOutcome, error)`                      | Simulieren, ohne den Zustand zu ändern                                                  |
| `SimulateVersionedTransaction(txBytes) (*TxOutcome, error)`                   | v0+ simulieren, ohne den Zustand zu ändern                                              |
| `LatestBlockhash() (solana.Hash, error)`                                      | Aktueller Blockhash                                                               |
| `ExpireBlockhash() error`                                                     | Auf einen neuen Blockhash weiterschalten                                                      |
| `GetTransaction(signature) *TxOutcome`                                        | Transaktion im Verlauf nachschlagen (nil, falls nicht vorhanden)                                  |
| `litesvm.BuildTransferTx(payerSeed, to, lamports, blockhash) ([]byte, error)` | Test-Helfer, der eine signierte Legacy-Überweisung erstellt, ohne `solana-go` einzubinden |

### Konfiguration

| Methode                                         | Beschreibung                                             |
| ---------------------------------------------- | ------------------------------------------------------- |
| `SetSigverify(bool) error`                     | Signaturprüfung aktivieren / deaktivieren                 |
| `Sigverify() (bool, error)`                    | Aktuelle Einstellung auslesen                                |
| `SetBlockhashCheck(bool) error`                | Blockhash-Validierung aktivieren / deaktivieren                   |
| `SetTransactionHistory(int) error`             | Kapazität des In-Memory-Transaktionsverlaufs (0 deaktiviert)           |
| `SetLogBytesLimit(int) error`                  | Log-Byte-Limit pro Transaktion (negativ = unbegrenzt)              |
| `SetLamports(uint64) error`                    | Guthaben des Airdrop-Pools zurücksetzen                          |
| `SetSysvars() error`                           | Sysvars auf Standardwerte zurücksetzen                               |
| `SetBuiltins() error`                          | Integrierte Programme neu laden                                |
| `SetDefaultPrograms() error`                   | SPL Token, Memo usw. neu laden                            |
| `SetPrecompiles() error`                       | ed25519-/secp256k1-Precompiles aktivieren                  |
| `WithNativeMints() error`                      | Wrapped-SOL-Mint initialisieren                                   |
| `SetFeatureSet(*FeatureSet) error`             | Ein Feature-Gate-Set installieren                              |
| `SetComputeBudget(ComputeBudget) error`        | Ein Compute Budget anwenden                                  |
| `ComputeBudget() (ComputeBudget, bool, error)` | Aktuelles Budget auslesen (bool gibt an, ob es „explizit gesetzt“ wurde) |

### Zeit und Sysvars

| Methode                                       | Beschreibung                          |
| -------------------------------------------- | ------------------------------------ |
| `WarpToSlot(slot uint64) error`              | Zu einem bestimmten Slot springen              |
| `Clock() (*sysvar.Clock, error)`             | Clock-Sysvar auslesen                |
| `SetClock(*sysvar.Clock) error`              | Clock-Sysvar überschreiben           |
| `Rent() (*sysvar.Rent, error)`               | Rent-Sysvar auslesen                 |
| `SetRent(*sysvar.Rent) error`                | Rent-Sysvar überschreiben            |
| `EpochSchedule() (*sysvar.EpochSchedule, error)` | EpochSchedule-Sysvar auslesen    |
| `SetEpochSchedule(*sysvar.EpochSchedule) error` | EpochSchedule-Sysvar überschreiben |
| `EpochRewards() (*sysvar.EpochRewards, error)` | EpochRewards-Sysvar auslesen       |
| `SetEpochRewards(*sysvar.EpochRewards) error` | EpochRewards-Sysvar überschreiben   |
| `LastRestartSlot() (*sysvar.LastRestartSlot, error)` | Last-Restart-Slot auslesen       |
| `SetLastRestartSlot(*sysvar.LastRestartSlot) error` | Last-Restart-Slot setzen         |
| `SlotHashes() (sysvar.SlotHashes, error)`    | SlotHashes-Sysvar auslesen           |
| `SetSlotHashes(sysvar.SlotHashes) error`     | SlotHashes-Sysvar überschreiben      |
| `SlotHistory() (*sysvar.SlotHistory, error)` | SlotHistory-Sysvar auslesen          |
| `SetSlotHistory(*sysvar.SlotHistory) error`  | SlotHistory-Sysvar überschreiben     |
| `StakeHistory() (sysvar.StakeHistory, error)` | StakeHistory-Sysvar auslesen        |
| `SetStakeHistory(sysvar.StakeHistory) error` | StakeHistory-Sysvar überschreiben    |

### Dienstprogramme

| Methode                     | Beschreibung                                                    |
| -------------------------- | -------------------------------------------------------------- |
| `litesvm.Version() string` | Engine-Beschreibung (`litesvm-go (mithril svm, pure go)`) |
