CKB Pulse
Lessons

What CKB learned

Start here · Glossary · Test yourself · Feed

LusoCryptoLabs/ckb-pulse

Lessons from LusoCryptoLabs/ckb-pulse

github.com/LusoCryptoLabs/ckb-pulse

Do you maintain this project? Confirm its lessons in one issue

1 lessons found. All lessons

Check chain-wide script users before consuming a deployed code cellWorkingChecked by the owner

Before consuming a deployed code cell, call indexer get_cells across the whole chain with script_search_mode "prefix" and args "0x", once as lock and once as type. Query the cell's data hash with hash_type data, data1 and data2, and for a Type ID cell also its type script hash with hash_type type. Zero results only means no live cell uses the binary right now. Consuming the cell is irreversible, and a Type ID identity cannot be recreated, so treat unused Type ID cells with extra caution.

#Cell deps and script lookup #Indexer queries and cell collection #Type ID and upgrades · Sources (2) · 2026-10-10

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.