Search across all documentation pages
9 pages in this section.
How Anchor maps clients to on-chain work: instruction handlers, Context and accounts structs, typed args, program accounts, ordering across a transaction, and CPI or return data from handlers.
Implement on-chain instruction business logic with instruction handlers. Learn to use Context<T> for validated accounts and deserialize arguments.
Learn how to pass and validate typed instruction arguments in Anchor. Use #[instruction(...)] to reference arguments in account constraints.
Access accounts in Solana programs using ctx.accounts for typed fields, ctx.bumps for PDA seeds, and ctx.remaining_accounts for variable lists.
Learn how to reference System, Token, and Associated Token programs in Anchor instructions. Understand when to use each program and see working examples.
Understand how Anchor instructions are ordered within a transaction. Learn to handle dependencies, initialize accounts, and design robust client flows.
Learn best practices for designing Solana program instructions. Discover how to create small, single-purpose handlers and validate arguments effectively.
A single-page roundup of every highlight bullet from the 8 pages in the Instructions section, grouped by source page so you can scan all 46 takeaways without opening each article individually.