Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CKBCellCollector

CellCollector will not get cell with block_hash by default, please use OtherQueryOptions.withBlockHash and OtherQueryOptions.CKBRpcUrl to get block_hash if you need.

Hierarchy

  • CKBCellCollector

Implements

Index

Constructors

constructor

Properties

indexer

indexer: CkbIndexer

Optional otherQueryOptions

otherQueryOptions: OtherQueryOptions | undefined

queries

Methods

collect

  • collect(): AsyncGenerator<Cell, void, unknown>
  • collect cells without block_hash by default.if you need block_hash, please add OtherQueryOptions.withBlockHash and OtherQueryOptions.ckbRpcUrl when constructor CellCollect. don't use OtherQueryOption if you don't need block_hash,cause it will slowly your collect.

    Returns AsyncGenerator<Cell, void, unknown>

convertQueryOptionToSearchKey

  • convertQueryOptionToSearchKey(): void
  • Returns void

count

  • count(): Promise<number>
  • Returns Promise<number>

validateQueryOption

  • Parameters

    Returns void

Generated using TypeDoc