02 Getting started with Scrypto
2.2 Summary
The blueprint & component dynamic is an important pattern to understand. In essence, blueprints define the structure and behavior of what the componnet will be when it's instantiated. Components on the other hand can be considered a live instance of a blueprint which holds state and perform logic execution. This relationship allows multiple components with different parameters that can be instantiated from the same blueprint.
- Blueprints contain the logic and the type of data your component holds. As the name implies they are the set of plans to create components, They do not contain the data itself.
- Components are the live instantiation of your blueprint which users can interact with. They contain the data stored in ledger state.