CKB Cell
The primary state units in CKB blockchain for storing arbitrary data and states.
Cells are the primary state units in CKB, within them users can include arbitrary states. All data on Nervos CKB is stored in Cells. A Cell has 4 fields: capacity, data, type and lock.
Cell Structure
Capacity
The amount of CKB tokens stored in the cell, also represents the storage space
Data
Arbitrary data stored in the cell, can contain any information
Type Script
Optional script that defines how the cell can be used or modified
Lock Script
Required script that controls ownership and access to the cell
Role in RGB++
In RGB++, CKB Cells are isomorphically bound to Bitcoin UTXOs, storing the programmable state while Bitcoin UTXOs control the ownership. This binding enables complex smart contract functionality while maintaining Bitcoin's security guarantees.