hackquest logo
  • Aprender
  • Explorar curso
  • Construir
  • Explorar hackatón
  • Archivo de proyectos
  • Comunidad
  • Foro
  • Evento global
  • Mi comunidad
  • Aprendizaje conjunto
  • Centro de organización
  • Más
    • Glosario
    • Blog
    • Grifos
    • Estación de trabajo
    • Kit de prensa
    • Fundador
hackquest logo
Atrás

Building a Counter on Solana (1)

In the following chapters, we will together complete a simple yet practical counter project.

Building a Counter on Solana (1)

Language

Rust

Total Length

1.5h

Part of Learning Track

Build on Solana + 1

What You'll Learn

Writing a project to implement a simple counter using Rust and Anchor.

How to configure a project, claim SOL, and get your counter on-chain in Solana Playground.

Counter
Initialize
Increment

Syllabus

Unit 0 - Course Intro

Introduction to Counter

Unit 1 - Initialization of On-Chain Programs

In this chapter, we will configure the initialization of on-chain programs.

Unit 2 - Account Structure Definition

In this chapter, we will define the basic data structure required for Counter.

Unit 3 - initialize(1)

In this chapter, we will implement the initialization of the counter, focusing primarily on data definition.

Unit 4 - initialize(2)

In this chapter, we will implement the initialization of the counter, focusing primarily on the implementation of its function.

Unit 5 - Increment(1)

In this chapter, we will learn about the data definition in the counter increment logic.

Unit 6 - Increment(2)

In this chapter, we will learn about the function implementation in the counter increment logic.

Unit 7 - Interaction

In this chapter, we will implement the deployment of Counter on Solana.

Language

Rust

Total Length

1.5h

Part of Learning Track

Build on Solana + 1