anchor
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 |
Features
| Topic | Description | Reference |
|---|---|---|
| Custom Errors | error_code, err!, require! macros, client handling | features-errors |
| Events | emit!, emit_cpi!, #[event], addEventListener, event-cpi | features-events |
More from hairyf/blockchain-master
openzeppelin-contracts
Secure smart contract library—access control, tokens (ERC20/721/1155/4626/6909), upgradeable contracts, and utilities.
15viem
TypeScript interface for Ethereum — clients, contracts, accounts, chains, ENS, and utilities.
13wagmi
Wagmi — React/Vue/Solid hooks and Core for Ethereum; config, connectors, read/write contracts, TanStack Query.
11ton
TON Blockchain — addresses, messages, TVM, cells, Blueprint, contracts, payments, API.
11envio
Envio blockchain data stack — HyperSync, HyperIndex, HyperRPC; fast indexing and data APIs.
8uniswap-v4
Uniswap v4 core pool logic — singleton PoolManager, unlock/callback, pool actions, hooks, and types.
7