Loading video player...
In this tutorial, community contributor Aditii walks you through the first step of building a Real-World Asset (RWA) tokenization platform on Rootstock — Bitcoin's EVM-compatible smart contract layer. By the end of Part 1, you'll have written two core Solidity contracts: ✅ AllowListRegistry — compliance layer managing verified/frozen addresses ✅ RWAToken — a compliant ERC-20 token with role-based access control, pausability, and enforced compliance hooks 🔧 WHAT YOU'LL LEARN - What RWA tokenization is and why it matters (~$24B+ in DeFi) - How Rootstock brings Ethereum-compatible smart contracts to Bitcoin - Setting up a Foundry project with OpenZeppelin contracts - Building an access-controlled allowlist registry - Creating a compliance-first ERC-20 token _______ Useful Resources - Foundry — https://getfoundry.sh - OpenZeppelin Contracts — https://docs.openzeppelin.com/contracts - Node.js — https://nodejs.org - MetaMask — https://metamask.io - Rootstock Testnet via Chainlist — https://chainlist.org (search "Rootstock Testnet") - Rootstock Testnet Faucet (free tRBTC) — https://faucet.rootstock.io - Rootstock Developer Docs — https://dev.rootstock.io - Rootstock RPC (Testnet) — https://public-node.testnet.rsk.co - Rootstock RPC (Mainnet) — https://public-node.rsk.co ______ This video is part of the From Devs to Devs series — technical tutorials created by community contributors through the Rootstock Hacktivator program. 👉 Want to create your own tutorial and earn rewards? Learn more at https://rootstock.io/hacktivator/ ______ Timestamps 00:00 Introduction to RootStuff and RWA 03:00 Understanding RWA Tokenization Process 05:38 Benefits and Challenges of Tokenization 08:00 Top Protocols in RWA 10:45 Prerequisites for Building on Rootstock 13:11 Setting Up the Development Environment 16:00 Writing Smart Contracts for RWA 18:25 Managing Access Control in Smart Contracts 20:23 Creating the Allow List Registry Contract 22:31 Implementing the RWA Token Contract 31:04 Introduction to ERC20 Token Implementation 32:41 Creating Interfaces and Access Control 35:04 Defining Roles and Permissions 36:43 Custom Errors and Events 38:52 Contract Initialization and Role Granting 41:01 Minting and Burning Tokens 42:10 Force Transfer and Compliance Checks 44:38 Finalizing the ERC20 Token Contract #Rootstock #RWA #Blockchain #Solidity #Foundry #Bitcoin #DeFi #ERC20 #Web3 #SmartContracts #Tokenization