All lessons · CKB node, RPC and indexer · Start here · Glossary
get_live_cell may return "unknown" rather than "dead" for a spent outputWorkingSeen again
Seen again · Check: right · Checked 2026-11-19
On CKB node 0.210.0 devnet, get_live_cell for an output already consumed by a committed transaction returned status "unknown" instead of "dead", so a check requiring "dead" fails. Accept "dead" or "unknown" and prove consumption by calling get_transaction on the creating and consuming transactions, confirming both are committed and that the consumer's inputs reference the out point exactly once.
Why it matters: A check that demands "dead" fails on a cell that was correctly spent, and accepting "unknown" alone would also pass for an out point that never existed, so consumption has to be proven from the committed transactions.
Pattern
if old["status"] != "dead" {Taken from the commit, shortened.
A test changed in the same commit
It sits next to the fix. We did not run it.
- tydeptrai21042004/ckb-skill:
tests/recovery-manifest.test.mjs,tests/spend-proof.test.mjs,tests/testnet-workflow-config.test.mjs
- Concepts
- Indexer queries and cell collection, Network and RPC reliability
- Evidence
- Seen again: seen in two or more projects
- First seen
- 2026-10-10
- Last changed
- 2026-10-30
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (3)
- 2026-10-10 · Tactus-Labs/tactus-o1 · more from this project
- 2026-10-30 · Ticoworld/QuotaCell · more from this project
- 2026-10-24 · tydeptrai21042004/ckb-skill · more from this project
More about CKB node, RPC and indexer
- Wait for get_indexer_tip to reach the commit block before re-reading cells
- Check indexer lag with get_indexer_tip before signing
- Computing cell confirmations from get_transaction block_hash and tip header
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "get_live_cell may return "unknown" rather than "dead" for a spent output", CKB lessons, https://pulse.lusocryptolabs.com/learned/node/get-live-cell-may-return-unknown-rather-than-dead-for-a-spen, CC BY 4.0, last changed 2026-10-30.