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

# Contoh Program Anchor

> Lihat proyek-proyek terkait yang menunjukkan cara menggunakan litesvm untuk pengujian program anchor

<Note>
README dari kedua repositori tersebut menyarankan untuk menjalankan `anchor build && cargo test`. Dengan
rilis Anchor dan Solana CLI saat ini, jalankan langkah-langkah berikut:

```bash
anchor keys sync
anchor build --arch v0
# Hanya Anchor Escrow: pengujiannya membaca IDL dari idls/
cp target/idl/anchor_escrow.json idls/
cargo test
```

`anchor keys sync` menyetel ID program ke keypair deploy lokal Anda, yang dimuat oleh
pengujian, sehingga program tidak gagal dengan `DeclaredProgramIdMismatch`.
`--arch v0` membangun program SBPF v0, yang dapat dimuat oleh versi LiteSVM yang digunakan
repositori-repositori ini. Dengan Anchor 1.1.x, gunakan perintah build pada
[Quick Start anchor-litesvm](/developers/docs/tools/litesvm/additional-crates/testing-with-anchor-litesvm#installation)
sebagai gantinya.
</Note>

## Contoh crate `litesvm`

<Columns cols={2}>
  <Card title="Aplikasi Anchor CRUD" href="https://github.com/brimigs/anchor-crud-litesvm">
    Contoh untuk menangani data
  </Card>
</Columns>

## Contoh crate `litesvm-token`

<Columns cols={2}>
  <Card title="Aplikasi Anchor Escrow" href="https://github.com/brimigs/anchor-escrow-with-litesvm">
    Contoh untuk menangani token
  </Card>
</Columns>
