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

Hierarchy

  • Indexer

Implements

Constructors

  • Parameters

    • ckbRpcUrl: string

    Returns Indexer

  • Parameters

    • ckbIndexerUrl: string
    • ckbRpcUrl: string

    Returns Indexer

Properties

ckbIndexerUri: string
ckbIndexerUrl: string
ckbRpcUrl?: string
emitters: IndexerEmitter[] = []
isSubscribeRunning: boolean = false
medianTimeEmitters: EventEmitter[] = []
uri: string
version: string = "0.4.1"

Methods

  • Parameters

    • timeout: number

    Returns Promise<void>

  • Parameters

    • argsLen: undefined | number | "any"
    • emitterArgs: string
    • args: string

    Returns boolean

  • Parameters

    • emitter: IndexerEmitter
    • blockNumber: string
    • outputData: string
    • emitterScript: Script
    • script: undefined | Script

    Returns boolean

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

    Parameters

    • queries: CKBIndexerQueryOptions
    • Optional otherQueryOptions: OtherQueryOptions

    Returns indexer.CellCollector

  • Returns Promise<void>

  • Parameters

    • output: Output
    • blockNumber: string
    • outputData: string

    Returns void

  • Parameters

    • searchKey: SearchKey
    • terminator: Terminator = DefaultTerminator
    • searchKeyFilter: SearchKeyFilter = {}

    Returns Promise<GetCellsResults>

  • Returns RPC

  • Returns IndexerRpc

  • Type Parameters

    • Group extends boolean = false

    Parameters

    • searchKey: GetTransactionsSearchKey<Group>
    • searchKeyFilter: SearchKeyFilter = {}

    Returns Promise<IndexerTransactionList<Group>>

  • Returns void

  • Returns Promise<number>

  • Parameters

    Returns Promise<void>

  • Returns boolean

  • Parameters

    • timeout: number = 1

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • queries: CKBIndexerQueryOptions

    Returns EventEmitter

  • Returns EventEmitter

  • Returns Promise<Tip>

  • Parameters

    • blockDifference: number = 0

    Returns Promise<void>

Generated using TypeDoc