All lessons · Rust scripts and ckb-std · Start here · Glossary
Cheque lock sender withdrawal requires exact since 0xA000000000000006WorkingFrom one fix
From one fix · Check: right · Checked 2026-11-19
The deployed Cheque lock (RFC 0039) accepts a sender withdrawal only when the Cheque input's since is exactly 0xA000000000000006 (relative epoch, 6 epochs after the cell was committed). A since of 0 fails with Cheque error 11 (WithdrawChequeInputSinceError), so the sender cannot reclaim for about 24h after each create or renew.
Why it matters: A sender withdrawal built with since 0 (or any other value) is rejected by the Cheque lock with error 11, and the sender cannot reclaim the cell until 6 epochs after it was committed.
Pattern
const CHEQUE_SENDER_SINCE: u64 = 0xA000_0000_0000_0006;Taken from the commit, shortened.
A test changed in the same commit
It sits next to the fix. We did not run it.
- salmansarwarr/Tranfr:
tests/src/composition.rs
- Concepts
- Since and time locks, Testing and devnet
- Evidence
- From one fix: from one project, checked against its commit
- First seen
- 2026-11-09
- Last changed
- 2026-11-09
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (1)
- 2026-11-09 · salmansarwarr/Tranfr · more from this project
More about Rust scripts and ckb-std
- Median time vs tip timestamp for deadlines
- ckb-std C shim needs a RISC-V C toolchain (clang) in CI
- Comparing packed epoch values
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Cheque lock sender withdrawal requires exact since 0xA000000000000006", CKB lessons, https://pulse.lusocryptolabs.com/learned/scripts/cheque-lock-sender-withdrawal-requires-exact-since-0xa000000, CC BY 4.0, last changed 2026-11-09.