CKB Pulse

All lessons · Light client · Start here · Glossary

Give light clients the committing block of a cell, not just its outpointWorkingChecked by the owner

Checked by the owner · Check: right · Checked 2026-11-19

A CKB light client that only watches scripts cannot look a cell up by outpoint, so a service that hands one a cell should also give the block number and hash of the transaction that created it. The client can then fetch that transaction by hash and watch for the cell being spent from that block, instead of scanning from genesis.

Why it matters: Without the committing block, a script-watching light client has to scan from genesis to find the cell and notice when it is spent.

Pattern

Prefer
blockNumber: a.blockNumber ?? null, blockHash: a.blockHash ?? null,

Taken from the commit, shortened.

A test changed in the same commit

It sits next to the fix. We did not run it.

Concepts
Indexer queries and cell collection, Network and RPC reliability
Evidence
Checked by the owner: checked by the owner of the project it came from, who is also the publisher of these lessons
First seen
2026-09-24
Last changed
2026-09-24
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)

More about Light client

All 5 in this topic

Checked by @LusoCryptoLabs (owner of the project), 2026-11-19.

Do you maintain a project this lesson came from? Confirm or correct it

Cite this lesson
LusoCryptoLabs, "Give light clients the committing block of a cell, not just its outpoint", CKB lessons, https://pulse.lusocryptolabs.com/learned/light-client/give-light-clients-the-committing-block-of-a-cell-not-just-i, CC BY 4.0, last changed 2026-09-24.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.