CKB Pulse

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

Avoid
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.

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)

More about CKB node, RPC and indexer

All 45 in this topic

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.

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.