Scrypto
Asset-oriented programming: resources, auth, testing, and design patterns.
Scrypto contains 7 pages, last updated 16h ago.
1. Scrypto Fundamentals
Scrypto is built on asset-oriented programming β a paradigm where digital assets are first-class primitives managed by the Radix Engine , not arbitrarβ¦
2. Resources, Vaults, and NFTs
A resource is any digital asset on Radix β tokens, NFTs , badges , LP tokens, etc. Unlike Solidity where tokens are contract state, Radix resources arβ¦
3. Authorization and Access Rules
In most smart contract platforms, access control is based on the caller's address β a pattern that leads to fragile permission systems and common explβ¦
4. Events, Metadata, and Royalties
Components can emit events during transaction execution. Events are encoded in SBOR and stored in the transaction receipt β useful for indexing, analyβ¦
5. Testing Scrypto Blueprints
Once your development environment is set up, the next step is understanding the Scrypto development workflow: creating packages, writing blueprints ,β¦
6. Vault and Resource Patterns
Radix enforces a strict invariant: every resource must exist inside a container at all times. There are two container types: Vaults (permanent, on-ledβ¦
7. Multi-Component Architecture
Scrypto separates the concept of "smart contract" into two distinct things: blueprints (reusable templates) and components (live instances on the ledgβ¦
