Overview: Counter Program
A high-level overview of the project you will be building in this module
In this module, you will build a counter program on Solana. The program allows users to increment a number by 1 after initializing it.
Counter Program Setup
Scaffold a new Rust project for your counter program.
Defining program state
Define, serialize, and deserialize program state in Solana using Rust structs and Borsh.
Defining program instructions
Learn how to define and process instructions in your Solana program.
Defining instruction handlers
Learn how to write handlers for your program instructions.
Module Goals
By building this project you will learn:
- How to represent and manage onchain state using Rust structs .
- How to create instructions and execute them with transactions .
- How accounts are created, how to allocate and calculate space the account occupies and how to make it rent exempt.
- How to deploy Solana programs on Localnet.
Last updated on