The Solana Account Model Explained: Everything is an Account
The article explains Solana's foundational concept that everything on its blockchain is an account, with each account consisting of five fields: lamports, data, owner, executable, and rent_epoch. These accounts represent diverse entities such as wallets, programs, and system variables, all sharing the same underlying structure. Understanding this model is key to grasping how Solana manages state, ownership, and program execution.
- ▪Every entity on Solana, including wallets, programs, and system variables, is implemented as an account with a uniform five-field structure.
- ▪An account's 'lamports' field holds its balance in the smallest unit of SOL, and accounts must be rent-exempt to avoid periodic fees.
- ▪The 'owner' field specifies which program can modify the account's data, meaning user wallets are owned and governed by the System Program.
- ▪Accounts with the 'executable' flag set to true contain program bytecode and can process transactions.
- ▪Sysvars, programs, and user wallets all use the same five-field account model, demonstrating the flexibility and uniformity of Solana's design.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 1170961) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Lymah Posted on May 16 The Solana Account Model Explained: Everything is an Account #100daysofsolana #solana #blockchain #web3 The Aha Moment During Epoch 1 of #100DaysOfSolana, I hit a wall. I'd built wallets, sent transactions, decoded data — but nothing clicked until I stopped thinking about Solana like traditional programming and started thinking about it as a system where everything is an account.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).