Goal: Think in accounts and instructions.

Cover: System Program, rent exemption, owners vs signers, data serialization (Borsh), sysvars.

Activity: Write a program that initializes and updates a state account.

Takeaway: “I can design account layouts and mutate them safely.”


1) Module overview

On Solana, everything is an account: balances, program code, and your program’s state. Programs cannot edit accounts they don’t own. The System Program creates new accounts and assigns ownership. Accounts must hold enough lamports to be rent‑exempt (a refundable storage deposit). You’ll learn core fields, how instructions carry data, and how to size and serialize your state.


2) Plain‑English explainer

Account fields (the mental model)

Creating program state (who does what?)

Rent and rent‑exemption (what to know now)

Owners vs signers (different roles)