Solana’s Account Model: A Web2 Developer’s Guide to On-Chain Storage - Hala Kabir
The article explains Solana's account model for Web2 developers transitioning to Web3. It compares the Solana blockchain to a Linux filesystem, where every account functions like a file with specific metadata. Additionally, it highlights that smart contracts on Solana are stateless, relying on external accounts for data storage.
- ▪In Solana, every account is treated as a file, with the public key serving as the file path.
- ▪The metadata of each account includes fields like balance, owner, and whether it is executable.
- ▪Smart contracts on Solana do not store data internally, requiring them to access external accounts for data management.
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 === 3648193) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Hala Kabir Posted on May 16 Solana’s Account Model: A Web2 Developer’s Guide to On-Chain Storage - Hala Kabir #100daysofsolana #blockchain #web3 #beginners If you are a Web2 developer dipping your toes into Web3, the word "account" probably conjures up images of user profiles, usernames, and passwords stored securely inside a database table. When you move over to blockchain networks like Ethereum, an account is either a wallet (Externally Owned Account) or a smart contract.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).