All lessons · Other · Start here · Glossary
Occupied capacity minimum for every outputBasicFrom one fix
From one fix · Check: right · Checked 2026-11-19
Every output must hold at least its occupied capacity: (8 for the capacity field + 33 + lock args length, plus 33 + type args length if a type script is present, plus data length) × 10^8 shannons. That is 61 CKB for a plain secp256k1 lock with 20 byte args and 63 CKB for a JoyID lock. A fixed payout or fee output set below the recipient lock's minimum is rejected, so choose a constant at or above the largest minimum among the locks you accept.
Why it matters: A fee or payout output set below the recipient lock's occupied capacity is rejected, so the whole transaction cannot be built or submitted.
A test changed in the same commit
It sits next to the fix. We did not run it.
- psawyerberlin/dead-man-switch:
acceptance/aiworker-dms-core/wiring.test.mjs,acceptance/aiworker-dms-e2e/wiring.test.mjs,acceptance/aiworker-dms-notifier/wiring.test.mjs,acceptance/aiworker-dms-ui/wiring.test.mjs - toastmanAu/daowow:
apps/web/test/claim-codec.test.js
- Concepts
- Capacity and cell size, Transaction building and fees
- Evidence
- From one fix: from one project, checked against its commit
- First seen
- 2026-11-14
- Last changed
- 2026-11-15
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (2)
- 2026-11-15 · psawyerberlin/dead-man-switch · more from this project
- 2026-11-14 · toastmanAu/daowow · more from this project
More about Other
- Recompute occupied capacity when a state cell grows in a transition
- Nervos DAO phase-one withdrawal layout
- Nervos DAO phase-two withdrawal since and amount
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Occupied capacity minimum for every output", CKB lessons, https://pulse.lusocryptolabs.com/learned/other/occupied-capacity-minimum-for-every-output, CC BY 4.0, last changed 2026-11-15.