Build a Simple Lock
Tutorial Overview
- An IDE/Editor that supports TypeScript
- CKB dev environment: OffCKB
Script develop tools
In this tutorial, we'll show you how to create a full-stack dApp, including both the frontend and the Script, to help you better understand CKB blockchain development.
Our example dApp will use a simple toy lock. We'll create a Lock Scripthash_lock
to secure some CKB tokens and build a web interface for users to transfer tokens from this hash_lock
.
The hash_lock
project involves specifying a hash in the Script's script_args
Although this toy lock example isn't intended for production, it's an excellent starting point for learning the basics.