View and Transfer a CKB Balance
Tutorial Overview
⏰ Estimated Time: 2 - 5 min
🔧 Tools You Need:
- An IDE/Editor that supports TypeScript
- CKB dev environment: OffCKB
How Transaction Works
CKB is based on a UTXO-like Cell Model. Every Cell has a capacity limit, which represents both the CKB balance and how much data can be stored in the Cell simultaneously. A Cell can store any type of data.
A transaction in CKB works similarly to Bitcoin. Each transaction consumes some input Cells and produces new output Cells. Note that the total capacities of the output Cells cannot be larger than those of the input Cells, similar to how UTXOs are transferred and converted in Bitcoin.