Class CellCollector

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

Hierarchy

  • CellCollector

Implements

Constructors

  • Parameters

    • terminableCellFetcher: TerminableCellFetcher
    • queries: CKBIndexerQueryOptions | CKBIndexerQueryOptions[]
    • Optional otherQueryOptions: OtherQueryOptions

    Returns CellCollector

Properties

collectBySingleQuery: any
getLiveCell: any
getLiveCellWithBlockHash: any
otherQueryOptions?: OtherQueryOptions
queries: CKBIndexerQueryOptions[]
request: any
terminableCellFetcher: TerminableCellFetcher

Methods

  • collect cells without blockHash by default.if you need blockHash, please add OtherQueryOptions.withBlockHash and OtherQueryOptions.ckbRpcUrl when constructor CellCollect. don't use OtherQueryOption if you don't need blockHash,cause it will slowly your collect.

    Returns AsyncGenerator<Cell, any, unknown>

  • Returns void

  • Returns Promise<number>

  • Parameters

    • queries: CKBIndexerQueryOptions

    Returns void

Generated using TypeDoc