RADIX WikiRADIX Wiki

Scrypto

Asset-oriented programming: resources, auth, testing, and design patterns.

Scrypto contains 9 pages, last updated 3d ago.

1. Scrypto Fundamentals

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

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

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

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

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

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

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…

8. Oracle Integration

8. Oracle Integration

Scrypto components execute deterministically on the Radix Engine and can only access data already present on the ledger β€” they cannot make HTTP calls…

9. Permissioned and Regulated Assets

9. Permissioned and Regulated Assets

Some assets are not meant to move freely. A tokenised bond may only be transferable between investors who have passed KYC; a credential must stay in t…