Odak modu

Smart Contract development on Solana using Rust

Accounts

Accounts are the foundation of the blockchain structure in Solana, which holds status, data, and ownership information. The data held can be program data, code information, account balance, etc.

Per Solana Cookbook there are 3 kinds of accounts on Solana:

  • Data accounts: Store data ( Two types of data accounts: System owned accounts and PDA(Program Derived Address) accounts )
  • Program accounts: Store executable programs, do not store state
  • Native accounts: Indicates native programs on Solana such as System, Stake, and Vote

Under the rules of ownership:

  • Only a data account's owner can modify its data and debit lamports
  • Anyone is allowed to credit lamports to a data account
  • The owner of an account may assign a new owner if the account's data is zeroed out

Rent

Storing data on accounts has a cost. Therefore, a fee must be paid for not deleting an account- this is called rent. If an account has a balance equivalent to at least 2 years' rent payment, the account is not required to pay rent. Rent can be retrieved by closing the account and sending the Lamports back to your wallet.

You can find further information about accounts from Solana Cookbook: https://solanacookbook.com/core-concepts/accounts.html#facts

Background Pattern
Birlikte öğrenelim

Sektörde en çok aranan yazılım becerilerini kazan

Yapay zeka desteği, birebir mentörlük saatleri, canlı dersler ve senin için özel hazırlanmış içeriklerle eksiklerini tamamla, düzenli geri bildirimler al ve öğrenme sürecini en verimli hale getir.

Yunus Emre Kabakcı

Patika+ mezunu

Patika+ Fullstack Web Development Bootcamp mezunumuz Yunus Emre,

3 ay içinde Katar’dan aldığı teklif ile, global bir şirket olan Pavo Group’da işe başladı!


“İçerik zenginliği, mentor desteği, ileriye dönük bir network sağlaması ve dünyada en çok tercih edilen frameworkler üzerinden bir eğitim veriyor olması Patika+’ı tercih etmemin temel sebepleri oldu!“

Yorumlar

Yorum yapabilmek için derse kayıt olmalısın!