Start here · Glossary · Test yourself · Feed
psawyerberlin/dead-man-switch ✕
Lessons from psawyerberlin/dead-man-switch
github.com/psawyerberlin/dead-man-switch
Do you maintain this project? Confirm its lessons in one issue
2 lessons found. All lessons
In flows like Create followed by Arm, save local state right after the first transaction is sent. If you wait until the whole flow finishes, a failure in a later step leaves an on-chain object the user cannot find or cancel. Add the extra fields, such as the descriptor, once the later steps succeed.
#Transaction building and fees #Other · Sources (1) · 2026-11-16
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.
#Capacity and cell size #Transaction building and fees · Sources (2) · 2026-11-15
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.