Search across all documentation pages
11 pages in this section.
How raw solana-program programs work end to end: entrypoint, manual AccountInfo validation, instruction data, account I/O, CPI account creation, logging, and trade-offs versus frameworks.
Learn the structure of solana-program native programs with 10 examples. Explore Cargo.toml, lib.rs skeleton, and instruction enums.
Learn how to implement entrypoints and dispatch instruction data in Solana native programs, including parsing, validation, and routing to handlers.
Learn to define and parse Solana instruction enums using Borsh for client-program contracts, including versioning and client parity.
Learn to read and write Solana account data. Discover how to borrow, mutate, and serialize account bytes using Borsh and zero-copy updates.
Learn to emit on-chain logs in Solana native programs using msg! and sol_log_data. Understand CU costs, best practices, and common pitfalls.
Learn best practices for writing secure, auditable, and efficient Solana native programs. Validate inputs, structure code, and deploy reliably.
A single-page roundup of every highlight bullet from the 10 pages in the Native Programs section, grouped by source page so you can scan all 58 takeaways without opening each article individually.