Solana's Account Model Explained By Someone Who Got Confused By It First
The article discusses the author's initial confusion with Solana's account model and how they eventually understood it. It explains that everything on Solana is treated as an account, including wallets and smart contracts. The author highlights the differences between Solana's model and traditional database structures, emphasizing the separation of code and data.
- ▪On Solana, everything is an account, including wallets and smart contracts.
- ▪The five fields that describe each account include Public Key, Balance, Owner, Executable, and Rent Epoch.
- ▪Solana's programs are stateless, meaning the program account holds code while a separate data account holds state.
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 === 1278866) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Murtala Mudi Posted on May 27 Solana's Account Model Explained By Someone Who Got Confused By It First #100daysofsolana #solana #web3 #beginners Let me start with a confession. When I first heard "everything on Solana is an account," I nodded like I understood. I did not understand. I just did not want to look confused. It took me actually running commands in the terminal, seeing things break, reading error messages I did not expect, and sitting with the output until it clicked.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).