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 | undefined

queries

terminableCellFetcher

terminableCellFetcher: TerminableCellFetcher

Methods

collect

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

convertQueryOptionToSearchKey

  • convertQueryOptionToSearchKey(): void
  • Returns void

count

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

validateQueryOption

  • Parameters

    Returns void

Generated using TypeDoc