anchor
Installation
SKILL.md
Skill is based on Anchor v0.32.1, generated 2026-02-09.
Concise reference for building Solana programs with Anchor: macros, accounts, PDAs, CPI, IDL, custom errors, events, zero-copy, constraints, account types, and CLI.
Core References
| Topic | Description | Reference |
|---|---|---|
| Program Structure | declare_id, #[program], #[derive(Accounts)], #[account], Context | core-program-structure |
| PDA | seeds, bump, init, IDL/client resolution, PDA signer | core-pda |
| CPI | CpiContext, transfer, PDA signer, invoke/invoke_signed | core-cpi |
| IDL | Instructions, accounts, discriminators, client usage | core-idl |