CKB Pulse
Lessons

What CKB learned

Start here · Glossary · Test yourself · Feed

LusoCryptoLabs/cells-contracts

Lessons from LusoCryptoLabs/cells-contracts

github.com/LusoCryptoLabs/cells-contracts

Do you maintain this project? Confirm its lessons in one issue

1 lessons found. All lessons

Minimum capacity of a cell depends on its lock args lengthWorkingChecked by the owner

A cell with no type and no data needs at least 8 (capacity) + 32 (code hash) + 1 (hash type) + args length in CKB: 61 CKB for a secp256k1_blake160 lock (20-byte args), 63 CKB for a JoyID lock with 22-byte args. A contract that knows a recipient lock only by hash cannot measure it, so a hardcoded floor for the fee output must be at least the largest lock it may face on each network, and a test should measure the real lock against it. Otherwise the fee output cannot be built.

#Capacity and cell size · Sources (2) · 2026-10-30

Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. JSON · Want a lesson changed or removed? Open an issue.