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

indexer

indexer: CkbIndexer

Optional otherQueryOptions

otherQueryOptions: OtherQueryOptions

queries

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

Generated using TypeDoc