You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/ckb-fundamentals/nervos-blockchain.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,22 @@
1
1
---
2
2
id: nervos-blockchain
3
3
title: Nervos Blockchain
4
+
description: "Get a beginner overview of Nervos CKB as a layered, proof-of-work blockchain for CKBytes, on-chain state, and CKB-VM programs."
5
+
tags:
6
+
- concept
7
+
- layer-1
8
+
- ckb-vm
9
+
- consensus
10
+
audience:
11
+
- dApp developers
12
+
- Script developers
13
+
related:
14
+
- /docs/getting-started/how-ckb-works
15
+
- /docs/ckb-fundamentals/cell-model
16
+
- /docs/ckb-fundamentals/ckb-vm
17
+
- /docs/ckb-fundamentals/consensus
18
+
difficulty: beginner
19
+
last_reviewed: 2026-06-24
4
20
---
5
21
6
22
## What is the Nervos Blockchain?
@@ -32,9 +48,9 @@ Further information about CKByte will be presented in the [Cell Model](cell-mode
32
48
33
49
## Programming on Nervos
34
50
35
-
Nervos offers smart contract programmability using a growing number of well-known general-purpose programming languages, such as Javascript, Rust, and C.
51
+
Nervos offers smart contract programmability using a growing number of well-known general-purpose programming languages, such as JavaScript, Rust, and C.
36
52
37
-
All programs on Nervos can store data and state on-chain,which makes creating complex applications and customized tokens a simple and straightforward process.
53
+
All programs on Nervos can store data and state on-chain, which makes creating complex applications and customized tokens a simple and straightforward process.
38
54
39
55
All code runs in CKB-VM. CKB-VM is a high-performance RISC-V virtual machine that provides a secure, consistent and flexible environment for developers. Multiple instances of CKB-VM can execute different smart contracts concurrently, which enables substantial scaling improvements through massive parallelization.
In Nervos CKB, Shannon is the smallest currency unit, with 1 CKB = 10^8 Shannons. This unit system is similar to Bitcoin's Satoshis, where 1 Bitcoin = 10^8 Satoshis. In CCC SDK, the value handle are mostly done in the **Shannon unit**.
92
+
In Nervos CKB, Shannon is the smallest currency unit, with 1 CKB = 10^8 Shannons. This unit system is similar to Bitcoin's Satoshis, where 1 Bitcoin = 10^8 Satoshis. In the CCC SDK, values are mostly handled in the **Shannon unit**.
77
93
:::
78
94
79
95
Next, we can start to transfer balance. Check out the transfer function in `lib.ts`:
@@ -148,7 +164,7 @@ You can open the console on the browser to see the full transaction to confirm t
148
164
149
165
## Congratulations!
150
166
151
-
By following this tutorial this far, you have mastered how balance transfers work on CKB. Here's a quick recap:
167
+
After following this tutorial, you have mastered how balance transfers work on CKB. Here's a quick recap:
152
168
153
169
- The capacity of a Cell indicates both the CKB balance and the amount of data that can be stored in the Cell simultaneously.
154
170
- Transferring CKB balance involves transferring some Cells from the sender to the receiver.
Copy file name to clipboardExpand all lines: website/docs/dapp/write-message.mdx
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,22 @@
1
1
---
2
2
id: store-data-on-cell
3
3
title: Store Data on Cell
4
+
description: "Build a dApp that writes a text message into CKB Cell data, then reads the Live Cell back and decodes the stored value."
5
+
tags:
6
+
- dapp
7
+
- tutorial
8
+
- cell-data
9
+
- cell-model
10
+
- ccc
11
+
audience:
12
+
- dApp developers
13
+
related:
14
+
- /docs/dapp/transfer-ckb
15
+
- /docs/ckb-fundamentals/cell-model
16
+
- /docs/tech-explanation/outputs-data
17
+
- /docs/sdk-and-devtool/ccc
18
+
difficulty: beginner
19
+
last_reviewed: 2026-06-24
4
20
---
5
21
6
22
importTabsfrom"@theme/Tabs";
@@ -19,7 +35,7 @@ import ExampleLink from "@components/ExampleLink";
19
35
20
36
In this tutorial, you will learn how to tuck a nifty message - "**Hello CKB!**" - into a <Tooltip>Cell</Tooltip> on the CKB blockchain. Imagine it as sending a message in a bottle, but the ocean is digital, and the bottle is a super secure, tamper-proof CKB Cell!
21
37
22
-
As you have learned from the first tutorial [Transfer CKB](/docs/dapp/transfer-ckb), the Cell can store any type of data in the data field of Cell structure. Here we will put a text message encoding in hex string format and store it in the data field. Once your words are encoded and inscribed into the blockchain, we'll then get the hex string from the same Cell back and then decode them to the original text message. the method of encoding and decoding is totally up to your favorite, we use the `TextDecoder` for simplicity through the tutorial.
38
+
As you learned from the first tutorial,[Transfer CKB](/docs/dapp/transfer-ckb), a Cell can store any type of data in the data field of the Cell structure. Here, we will encode a text message as a hex string and store it in the data field. Once your words are encoded and inscribed into the blockchain, we'll get the hex string back from the same Cell and decode it to the original text message. The encoding and decoding method is up to you; we use `TextDecoder` for simplicity throughout the tutorial.
23
39
24
40
## Setup Devnet & Run Example
25
41
@@ -40,11 +56,11 @@ You can also read the full code online or download it <ExampleLink path="dApp/st
40
56
41
57
## Behind the Scene
42
58
43
-
Open the `lib.ts` file in your project, it lists all the important functions that do the most of work for the project.
59
+
Open the `lib.ts` file in your project. It lists the important functions that do most of the work for the project.
44
60
45
61
### Encode & Decode Message
46
62
47
-
Since Cell's data field can store any type of data, we need to design our encoding and decoding method for the message we want to read and write on-chain.
63
+
Since a Cell's data field can store any type of data, we need to design an encoding and decoding method for the message we want to read and write on-chain.
0 commit comments