<aside> 📁 Keeping it neat Create a new folder for this bootcamp

</aside>

<aside> 💡 Recommended Reading Materials:

</aside>

What is Solana’s Account Model

When programming on Solana, we engage in two main activities. First, we establish the state of our program, which represents the account model or data model that our users will engage with. Second, we define instructions that dictate the guidelines for altering and modifying the state. These instructions outline how the state can change and mutate.

Reading Materials

  1. Solana Programming Model by Solana Bytes (4min video)
  2. Accounts by Solana Bytes (6min video)

How to read data from the blockchain?

Create and submit an on-chain Transaction

Summary

States are stored on the blockchain in data accounts, separate from program logic accounts.

  1. To add or change on-chain data, we need to send transaction requests with valid instructions (programId, accounts, data) and signatures to a RPC endpoint, thus compute and storage fees may be required.

  2. To read or subscribe on-chain data, we need to send a request to a RPC endpoint to read and parse data from the endpoint. However, no transaction is required, thus no signatures and fees.