Scrypto
Scrypto is Radix’s Rust SDK for writing smart contracts. Tokens and NFTs are resources a contract holds in vaults, rather than balances it records in a table. These guides cover resources, authorization, testing and design patterns.
The main article for this category is Scrypto.
Scrypto
1. Scrypto Fundamentals
This page introduces Scrypto, Radix's Rust SDK, and its package, blueprint and component model.
2. Resources, Vaults, and NFTs
This page shows how a Scrypto blueprint creates fungible and non-fungible resources, holds and moves them in vaults and buckets, and proves it holds them with…
3. Authorization and Access Rules
This guide covers how a Scrypto component controls who may call its methods. Radix gates a method on a badge, a resource the caller must prove it holds; a…
4. Events, Metadata, and Royalties
This page shows how a Scrypto blueprint emits events, sets metadata on the entities it creates, and charges royalties when its functions and methods are called.
5. Testing Scrypto Blueprints
This page covers building a Scrypto package and testing it with resim and scrypto-test.
6. Vault and Resource Patterns
This page collects the patterns a component uses to hold resources and move them.
7. Multi-Component Architecture
This page shows how to split a Scrypto dApp across small blueprints whose components call each other, and how to use blueprints published in other packages.
8. Oracle Integration
An oracle brings off-ledger data into a Scrypto component; this guide covers push and pull oracles on Radix and one production failure.
9. Permissioned and Regulated Assets
This guide covers the rules a Scrypto resource can carry about who may move, freeze or recall it, the account-side controls that sit opposite them, and how to…
10. Badge Patterns: User, Actor and Transient Badges
Three Scrypto badge patterns: user badges for people, actor virtual badges for components, and transient badges that force a call order.
11. Deposit and Withdraw Patterns
How a Radix dApp pays users who are not in the transaction: return buckets, badge and claim, authorized depositors, and the account locker.
12. Data Types and the Runtime API
The types a Scrypto blueprint works with, Decimal arithmetic and rounding, and what a blueprint can ask the engine at run time: epoch, clock, addresses, hashes, logs.
13. Before You Release: Hardening a Blueprint
The checks the Radix docs ask of every Scrypto blueprint before mainnet: proofs, state growth, Decimal maths, auth, owners, metadata and builds.
