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

otherQueryOptions?: OtherQueryOptions
queries: CKBIndexerQueryOptions[]
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>

  • Parameters

    • query: CKBIndexerQueryOptions

    Returns AsyncGenerator<Cell, any, unknown>

  • Returns void

  • Returns Promise<number>

  • Parameters

    • query: CKBIndexerQueryOptions
    • Optional lastCursor: string

    Returns Promise<GetCellsResults>

  • Parameters

    • query: CKBIndexerQueryOptions
    • Optional lastCursor: string

    Returns Promise<GetCellsResults>

  • Parameters

    • rpcUrl: string
    • data: unknown

    Returns Promise<any>

  • Parameters

    • queries: CKBIndexerQueryOptions

    Returns void

Generated using TypeDoc