All lessons · Spore and DOB · Start here · Glossary
Finding a spore or cluster by id through the indexer's get_transactionsWorkingFrom one fix
From one fix · Check: right · Checked 2026-11-19
A spore id or cluster id is the args of the spore (or spore_cluster) type script, so you can look one up by calling get_transactions with that type script, args set to the id, script_search_mode "exact" and a limit of 0x1. Because get_transactions returns history and not just live cells, this also finds spores that have since been melted.
Why it matters: Looking a spore up through live cells alone (get_cells) misses spores that were melted, so a valid spore id would come back as not found.
Lookup by id via get_transactions, includes melted spores.
Pattern
{ script: { code_hash: k.codeHash, hash_type: k.hashType, args: h }, script_type: "type", script_search_mode: "exact" }, "asc", "0x1"Taken from the commit, shortened.
- Concepts
- Indexer queries and cell collection
- Evidence
- From one fix: from one project, checked against its commit
- First seen
- 2026-10-30
- 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 (1)
- 2026-10-30 · wildanrhmn/ckb-devnet-explorer · more from this project
More about Spore and DOB
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Finding a spore or cluster by id through the indexer's get_transactions", CKB lessons, https://pulse.lusocryptolabs.com/learned/spore/finding-a-spore-or-cluster-by-id-through-the-indexer-s-get-t, CC BY 4.0, last changed 2026-10-30.