Solana's Stateless Smart Contracts: A New Approach to Program Execution
The Solana program model is a unique approach to smart contracts that separates code from data, a design choice that may confuse newcomers but explains a lot about the network's performance.
Unlike most blockchains, Solana's program model keeps programs completely stateless, meaning they contain only executable code and no stored variables or internal memory.
Accounts in the Solana program model are the core unit of everything, and they handle every bit of actual data a program needs to read or write. There are different types of accounts, including program accounts, data accounts, system accounts, and token accounts.
The stateless design of Solana's program model means that a program can operate across many different accounts without needing a fresh deployment every time someone wants to use it for something new.
The Program Derived Address (PDA) is a special address that lets a program sign transactions without actually holding a private key, which adds a layer of predictability that developers rely on heavily.