Options
All
  • Public
  • Public/Protected
  • All
Menu

Transaction Service Interface

Hierarchy

  • ITransactionService

Implemented by

Index

Methods

announce

  • This method announces a transaction while waiting for being confirmed by listing to the /confirmed web socket. If an error to the given transaction is sent to the /status web socket, the TransactionStatusError is raised.

    Steps:

    1. It announces the transaction to the TransactionRepository

    2. It calls the IListener's confirmed method waiting for the transaction to be confirmed.

    3. It calls the IListener's status method waiting for an error to occurred.

    The observable will resolve the transaction from 2) or it will raise an error from 3).

    Parameters

    • signedTransaction: SignedTransaction

      Signed transaction to be announced.

    • listener: IListener

      the web socket listener used to detect confirmed transaction or status errors coming from the catapult server.

    Returns Observable<Transaction>

announceAggregateBonded

  • This method announces an aggregate bonded transaction while waiting for being added by listing to the /aggregateBondedAdded web socket. If an error to the given transaction is sent to the /status web socket, the TransactionStatusError is raised. is raised.

    Steps:

    1. It announceAggregateBonded the transaction to the TransactionRepository

    2. It calls the IListener's aggregateBondedAdded method waiting for the transaction to be confirmed.

    3. It calls the IListener's status method waiting for an error to occurred.

    The observable will resolve the transaction from 2) or it will raise an error from 3)

    Parameters

    Returns Observable<AggregateTransaction>

announceHashLockAggregateBonded

  • This method announces an a hash lock transaction followed by a aggregate bonded transaction while waiting for being confirmed by listing to the /confirmed and /aggregateBondedAdded web socket. If a status ws error is sent while processing any of the given transaction the TransactionStatusError is raised.

    Announce aggregate bonded transaction with lock fund

    Parameters

    Returns Observable<AggregateTransaction>

resolveAliases

  • resolveAliases(transactionHashes: string[]): Observable<Transaction[]>

Generated using TypeDoc