Skip to main content

Learning Step-by-Step

We've made two learning paths to teach you how to build on Radix, one for if you want to make full stack apps (using Scrypto for on ledger components and JS for the front end) and another for if you want to build and connect a front end web app to existing scrypto components.

Scrypto

If you’re only planning to build on ledger (in Scrypto) then follow the full stack path. Sections covering front end interactions are marked as skippable.

Scrypto and Front End

This step-by-step guide will build you up from the very basics of Scrypto all the way through to a full application with a frontend. It is intended to be followed from start to end, but if you’re just looking to achieve specific tasks you can browse the steps by topic below.

The basics of Scrypto package structure and how to use it

StepTitleTopic
0Getting Rust & ScryptoInstalling the Scrypto toolchain
1Run Your First Scrypto ProjectRunning Scrypto code in the Radix Engine Simulator
2Explain Your First Scrypto ProjectScrypto package structure and template code explanation

An introduction to resource metadata and behaviours

StepTitleTopic
3Create Your First Custom ResourceCreate resources with different metadata
4Build a Gumball MachineBuild a simple Gumball Machine blueprint
5Give the Gumball Machine an OwnerOwnership and protected methods
6Make the Gumball Machine RefillableThe mintable resource behaviour

Interact with your package on the test network

StepTitleTopic
7Create and Use Transaction ManifestsUse transaction manifests in the Radix Engine Simulator
8Use the Gumball Machine on StokenetDeploy a package on the Stokenet test network
9Run Your First Front End dAppDeploy and run a simple front end dapp on Stokenet
10Run the Gumball Machine Front End dAppDeploy and run the Gumball Machine as a front end dapp on Stokenet
11Set Verification MetadataTwo way linking metadata for verification

Non-fungible resources, authorization and advanced resource behaviours

StepTitleTopic
12Create Your First Non-FungibleMint a non-fungible resource
13Build a Candy StoreCustom authorization roles
14Make Recallable BadgesThe recallable and burnable resource behaviours

Interaction between blueprints

StepTitleTopic
15Build a Multi-Blueprint PackageModularise packages into smaller blueprints
16Create Owned ComponentsCompare owned and global components
17Use External BlueprintsUse blueprints that aren’t a part of your package
18Use External ComponentsUse components that aren’t a part of your package

Testing

StepTitleTopic
19Explain Your First TestUnderstand and run the tests on the Hello template blueprint
20Test a Multi-Blueprint PackageUnit and integration tests

DEX example

StepTitleTopic
21Run the Radiswap dAppDeploy and run a simple two resource DEX

Front End

If you are only looking to build a front end for a preexisting scrypto package you will gain the most from the following sections:

StepTitleTopic
9Run Your First Front End dAppDeploy and run a simple front end dapp on Stokenet
10Run the Gumball Machine Front End dAppDeploy and run the Gumball Machine as a front end dapp on Stokenet
11Set Verification MetadataTwo way linking metadata for verification
21Run the Radiswap dApp - Front EndDeploy and run a simple two resource DEX