Start here · Glossary · Test yourself · Feed
tydeptrai21042004/ckb-skill ✕
Lessons from tydeptrai21042004/ckb-skill
github.com/tydeptrai21042004/ckb-skill
Do you maintain this project? Confirm its lessons in one issue
2 lessons found. All lessons
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.
#Indexer queries and cell collection #Network and RPC reliability · Sources (3) · 2026-10-30
To get a cell's confirmation count over raw CKB JSON-RPC, read tx_status.block_hash from get_transaction, look up its number with get_header, then compute tip − included + 1 using get_tip_header; treat a missing block_hash as 0 confirmations. This commit's helper also retries get_transaction without the "0x2" verbosity param if the node rejects it, and treats get_live_cell as live only when status === "live".
#Network and RPC reliability #Indexer queries and cell collection · Sources (1) · 2026-09-22
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.