Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Rust #1.2 - Implementing State Management: Blockchain Module Using BTreeMap
Play lesson

Build a Blockchain from Scratch with Rust - Rust #1.2 - Implementing State Management: Blockchain Module Using BTreeMap

5.0 (5)
40 learners

What you'll learn

This course includes

  • 3.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

In this lesson, we dive into adding state to our Rust blockchain module by implementing a way to store user balances. We'll use Rust's standard library, specifically the BTreeMap collection, to create a key-value store for balances. You'll learn how to define fields in your Pallet struct, specifying types and ensuring efficient memory use. We also cover creating methods for the struct, starting with the new method to instantiate the Pallet. By the end of this video, you'll have a foundational understanding of managing state in your Rust blockchain applications, setting the stage for more advanced functionality like balance transfers. This video is part of a learning journey created by WEB3DEV. To watch all videos and learn more, sign-up at https://build.w3d.community/

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere