{"slug":"anchor","title":"Anchor","description":"Wiki for Anchor: the Rust framework for Solana programs (smart contracts) — program structure & macros, account constraints/types, PDAs, CPI, IDL, errors/events, SPL tokens (anchor-spl), the TS/Rust clients, testing, the CLI/AVM toolchain, and program security.","tags":["anchor","solana","smart-contracts"],"category":"blockchain","scope":{"covers":"Anchor — the Rust framework for Solana programs (smart contracts): program structure and macros (#[program], #[derive(Accounts)]), account constraints and types, PDAs, CPI, the IDL, errors/events, SPL tokens via anchor-spl (incl. Token-2022), the TypeScript and Rust clients, testing (litesvm/mollusk/fuzzing), the anchor CLI and avm toolchain, verifiable builds, and program security.","notCovered":"Broader Solana concepts — the account model, runtime, RPC, SPL internals, staking — are in the solana wiki. Also out of scope: the exhaustive account-constraint/type reference (catalogued), native (non-Anchor) program development, and Anchor changes after v1.1.1 / the source fetch date below — see the Anchor docs.","currentAs":"2026-06-25 (1.1.1)"},"lastUpdated":"2026-06-25","documentCount":19,"raw_base":"/raw/anchor/","html_base":"/wiki/anchor/","documents":[{"path":"README.md","title":"LLM Wiki","type":null,"updated":null},{"path":"wiki/index.md","title":"Anchor KB — Master Index","type":"index","updated":"2026-06-25"},{"path":"wiki/concepts/accounts-and-constraints.md","title":"Accounts and Constraints","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/advanced-account-features.md","title":"Advanced Account Features","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/clients.md","title":"Anchor Clients (TypeScript & Rust)","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/cpi.md","title":"Cross Program Invocation (CPI)","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/errors-and-events.md","title":"Errors and Events","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/idl.md","title":"The Anchor IDL","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/pdas.md","title":"Program Derived Addresses (PDAs)","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/project-structure.md","title":"Anchor Program Structure","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/security.md","title":"Anchor Program Security","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/spl-tokens.md","title":"SPL Tokens with anchor-spl","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/testing.md","title":"Testing Anchor Programs","type":"concept","updated":"2026-06-25"},{"path":"wiki/concepts/what-is-anchor.md","title":"What Is Anchor","type":"concept","updated":"2026-06-25"},{"path":"wiki/entities/anchor-cli-and-avm.md","title":"Anchor CLI and AVM","type":"entity","updated":"2026-06-25"},{"path":"wiki/log.md","title":"Activity Log","type":"log","updated":null},{"path":"wiki/summaries/reference-catalog.md","title":"Anchor Reference Catalog","type":"summary","updated":"2026-06-25"},{"path":"wiki/syntheses/program-security-checklist.md","title":"Program Security Checklist","type":"synthesis","updated":"2026-06-25"},{"path":"wiki/syntheses/quickstart-build-a-program.md","title":"Quickstart: Build an Anchor Program","type":"synthesis","updated":"2026-06-25"}]}