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

# Anchor-Programmbeispiele

> Sehen Sie sich verlinkte Projekte an, die zeigen, wie litesvm zum Testen von Anchor-Programmen verwendet wird

<Note>
In den READMEs beider Repositories steht, dass `anchor build && cargo test` ausgeführt werden soll. Mit aktuellen Anchor- und Solana-CLI-Releases führen Sie stattdessen diese Schritte aus:

```bash
anchor keys sync
anchor build --arch v0
# Nur Anchor Escrow: Die Tests lesen die IDL aus idls/
cp target/idl/anchor_escrow.json idls/
cargo test
```

`anchor keys sync` setzt die Programm-ID auf Ihr lokales Deploy-keypair, das die Tests laden, damit das Programm nicht mit `DeclaredProgramIdMismatch` fehlschlägt.
`--arch v0` erstellt ein SBPF-v0-Programm, das die in diesen Repositories verwendeten LiteSVM-Versionen laden können.
Verwenden Sie mit Anchor 1.1.x stattdessen die Build-Befehle im
[anchor-litesvm-Schnellstart](/developers/docs/tools/litesvm/additional-crates/testing-with-anchor-litesvm#installation).
</Note>

## Beispiele für das `litesvm`-Crate

<Columns cols={2}>
  <Card title="Anchor-CRUD-App" href="https://github.com/brimigs/anchor-crud-litesvm">
    Beispiel für den Umgang mit Daten
  </Card>
</Columns>

## Beispiele für das `litesvm-token`-Crate

<Columns cols={2}>
  <Card title="Anchor-Escrow-App" href="https://github.com/brimigs/anchor-escrow-with-litesvm">
    Beispiel für den Umgang mit Tokens
  </Card>
</Columns>
