Conclusion
#
Develop your first DApp on CKB layer1#
Related Concepts- Data Structures of Nervos CKB: Cell, Script, Transaction, see A transfer transaction on CKB Testnet
- State Generation and Verification,see Generation offline Validation online.
- There is a important principle for development on CKB layer1,see Submit the minimal data.
- Molecule serialization system on CKB, see Use Molecule Serialization System.
#
How to use LumosLumos is an open-source framework that was developed by the Nervos Developer Tools team, for building Nervos CKB DApps.The transfer-tx DApp demo is based on Lumos functionalities to implement the most basic functions, see Transfer-Tx DApp demo.
#
A DApp demo on CKB layer1: Felix botFelix bot is a telegram bot, created upon botgram and lumos. You can use felix bot to interact with CKB layer1, send CKBytes red envelopes in a telegram chat group.In the process of the felix bot DApp development,you can more intuitively understand the interaction between the client, back-end and CKB layer1,see Felix bot DApp demo.
Figure 4 the architecture of felix bot.
#
How to use Molecule Serialization SystemMolecule, as a widely used data structure in CKB, has its unique property that memory consumption could be minimized. For more information about the molecule format and the implementations of serialization and deserialization by molecule, see Use Molecule Serialization System.
Figure 9 molecule serialization implementation and molecule serialization implementation.
#
Stay tuned#
MercuryMercury is a tool that handles applications development on CKB. It is like the bridge between CKB and applications. It provides useful RPC services for DApps that are built upon Lumos, see Mercury README.
#
GodwokenIf you are an Ethereum DApp developer and now want to develop on CKB,you don't have to abandon the previous development habits, see Generation offline Validation online.
Godwoken,as a CKB layer2 solution, is a generic framework to build rollup solutions upon Nervos CKB,see godwoken. In addition,godwoken-polyjuice, an Ethereum compatible backend for godwokenrollup framework, see godwoken-polyjuice. The solution is just for you. Because of the “VM on VM” scheme, an EVM implementation is running on CKB-VM, you can develop or run Ethereum DApps on CKB network. the detailed development documentations is also coming online, stay tuned...
Now A hackathon is ongoing and Nervos Fundation is one of the sponsors,see Gitcoin hackathon. Welcome to join the hackathon!
#
References- Documentations
- Nervos Document Website: The Nervos documentation website.
- Lumos-doc: Provide an understanding of Lumos.
- Nervos Network RFCs: Include proposals, standards and documentations related to Nervos Network.
- Tools
- Tippy: A tool that helps set up and manage CKB nodes.
- CKB-CLI: A CKB command line tool written in Rust.
- CKB-JS-Toolkit: JavaScript toolkit for Nervos CKB.
- Molecule: The serialization system used on CKB.
- CKB system scripts: The system scripts included in the system cells created by the genesis block.
- Mercury: A tool that handles applications development on CKB.
- Blogs
- Jan Xie's medium blog: Introduce the Nervos Network architecture design.
- Xuejie's space: Introduce Nervos CKB Programming model.
#
Contact & SupportIf you find issues with the document site or have suggestions on how to improve the documentation, please file an issue for me, or email me at zengb@cryptape.com.
If you run into issues with DApps development on Nervos CKB, you can create a post on Nervos Talk or join Discord. Welcome to contact with us!