全部经验 · Spore and DOB · 从这里开始 · 术语表
Finding a spore or cluster by id through the indexer's get_transactions实践来自一次修复
来自一次修复 · 核对结果:正确 · 核对于 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.
为什么重要: 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.
代码模式
推荐
{ script: { code_hash: k.codeHash, hash_type: k.hashType, args: h }, script_type: "type", script_search_mode: "exact" }, "asc", "0x1"摘自提交,已缩短。
- 概念
- Indexer queries and cell collection
- 证据
- 来自一次修复: 来自一个项目,已对照其提交核对
- 首次出现
- 2026-10-30
- 最近改动
- 2026-10-30
- 最近核对
- 2026-11-19
- 对照提交的核对结果
- 正确:这条经验出自该提交,并且在今天的代码中仍然成立
来源(1)
- 2026-10-30 · wildanrhmn/ckb-devnet-explorer · 这个项目的更多经验
更多关于Spore and DOB
引用这条经验
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.