Todas as lições · Spore and DOB · Começa aqui · Glossário
Finding a spore or cluster by id through the indexer's get_transactionsPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 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.
Porque importa: 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.
Padrão
{ script: { code_hash: k.codeHash, hash_type: k.hashType, args: h }, script_type: "type", script_search_mode: "exact" }, "asc", "0x1"Tirado do commit, encurtado.
- Conceitos
- Indexer queries and cell collection
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-10-30
- Última mudança
- 2026-10-30
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-10-30 · wildanrhmn/ckb-devnet-explorer · mais deste projeto
Mais sobre Spore and DOB
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
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.