Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CKBCellCollector

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

Hierarchy

  • CKBCellCollector

Implements

Index

Constructors

constructor

Properties

Optional otherQueryOptions

otherQueryOptions: OtherQueryOptions

queries

terminableCellFetcher

terminableCellFetcher: TerminableCellFetcher

Methods

collect

  • collect(): AsyncGenerator<Cell>
  • 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>

convertQueryOptionToSearchKey

  • convertQueryOptionToSearchKey(): void
  • Returns void

count

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

validateQueryOption

Generated using TypeDoc