全部经验 · CKB node, RPC and indexer · 从这里开始 · 术语表
Paging indexer get_cells and get_transactions with last_cursor实践来自一次修复
来自一次修复 · 核对结果:正确 · 核对于 2026-11-19
The built-in indexer RPCs get_cells and get_transactions return at most the requested limit (here 0x3e8) plus a last_cursor. To read all results for a search key, pass last_cursor as the fourth param on the next call and stop once a page returns fewer objects than the limit; a single call with a small limit (the old 0xc8 or 0x19) undercounts cells and transactions.
为什么重要: With one call, the address page saw only the first 200 cells and 25 transactions. Live cell counts, occupied capacity, token balances and transaction totals were therefore wrong for any lock with more results than that.
代码模式
const params: unknown[] = [key, "desc", "0x3e8"]; if (cursor) params.push(cursor);摘自提交,已缩短。
- 概念
- Indexer queries and cell collection, Network and RPC reliability
- 证据
- 来自一次修复: 来自一个项目,已对照其提交核对
- 首次出现
- 2026-10-30
- 最近改动
- 2026-10-30
- 最近核对
- 2026-11-19
- 对照提交的核对结果
- 正确:这条经验出自该提交,并且在今天的代码中仍然成立
来源(1)
- 2026-10-30 · wildanrhmn/ckb-devnet-explorer · 这个项目的更多经验
更多关于CKB node, RPC and indexer
- get_live_cell may return "unknown" rather than "dead" for a spent output
- Wait for get_indexer_tip to reach the commit block before re-reading cells
- Check indexer lag with get_indexer_tip before signing
引用这条经验
LusoCryptoLabs, "Paging indexer get_cells and get_transactions with last_cursor", CKB lessons, https://pulse.lusocryptolabs.com/learned/node/paging-indexer-get-cells-and-get-transactions-with-last-curs, CC BY 4.0, last changed 2026-10-30.