TransactionManager offer a simple way to query and cache the pending transactions, it means you can get the pending cells without waiting for the transaction to be confirmed.

Hierarchy

Implements

  • TransactionManagerType

Constructors

  • Parameters

    • payload: {
          indexer: LumosCellIndexer;
          storage?: Store<any>;
          transactionSender: TransactionSender;
      }
      • indexer: LumosCellIndexer
      • Optional storage?: Store<any>
      • transactionSender: TransactionSender

    Returns TransactionManager

Properties

cellCollectorProvider: LumosCellIndexer
transactionSender: TransactionSender
txStorage: TransactionStorageType

Methods

  • Returns Promise<void>

  • Similar to ckbIndexer.collector, but it will return the pending cells as well. You can use usePendingOutputs to control whether to return the pending cells.

    Parameters

    • queryOptions: CKBIndexerQueryOptions
    • Optional options: {
          usePendingOutputs?: boolean;
      }
      • Optional usePendingOutputs?: boolean

        Default

        true
        

    Returns indexer.CellCollector

  • Parameters

    Returns Promise<string>

Generated using TypeDoc