Move Basics
Master the fundamentals of the Move programming language.Module Structure
Every Move file defines a module:my_package- Package name (from Move.toml)my_module- Module name (matches filename)
Basic Types
Primitive Types
Vectors
Functions
Basic Function
Public Functions
Entry Functions
Entry functions can be called directly from transactions:Structs
Define custom types with structs:Creating Structs
Abilities
Structs can have special abilities:References
Immutable References
Mutable References
Control Flow
If Expressions
While Loops
Error Handling
Useassert! for validation:
Common Patterns
Option Type
Generics
Complete Example
Here’s a complete module showcasing basic concepts:Next Steps
Now that you know Move basics, let’s write your first contract:First Contract
Create and deploy your first Move smart contract