What is Starknet By Example?

Starknet By Example provides practical examples for building smart contracts on Starknet using the Cairo programming language.
The examples in Starknet By Example are for educational purposes and have not been audited. Do not use this code in production. The authors are not liable for any damages resulting from the use of this code.

Who is Starknet By Example for?

Starknet By Example is designed for developers with basic programming and blockchain knowledge who want to learn Starknet smart contract development using Cairo. The content is structured progressively - early chapters cover Cairo and Starknet fundamentals, while later chapters explore advanced topics and complex smart contract patterns.

How to use Starknet By Example?

Each chapter of Starknet By Exampleis self-contained and focuses on a specific Starknet feature or smart contract use case. While you can jump to any topic, we recommend following the chapters in order if you’re new to Starknet. You can try out the examples instantly in the Cairo Playground.