Options
All
  • Public
  • Public/Protected
  • All
Menu

Transaction status http repository.

since

1.0

Hierarchy

  • Http
    • TransactionStatusHttp

Implements

Index

Constructors

constructor

  • new TransactionStatusHttp(url: string, epochAdjustment?: number | Observable<number>, fetchApi?: any): TransactionStatusHttp

Properties

Protected Optional Readonly fetchApi

fetchApi: any

fetch function to be used when performing rest requests.

Protected Readonly url

url: string

Base catapult-rest url

Methods

Protected call

  • call<D, M>(remoteCall: Promise<D>, mapper: (value: D) => M): Observable<M>
  • This method knows how to call, convert and handle exception when doing remote http operations.

    Type parameters

    • D

    • M

    Parameters

    • remoteCall: Promise<D>

      the remote call

    • mapper: (value: D) => M

      the mapper from dto to the model object.

        • (value: D): M
        • Parameters

          • value: D

          Returns M

    Returns Observable<M>

config

  • config(): Configuration

createNetworkTypeObservable

getTransactionStatus

getTransactionStatuses

  • getTransactionStatuses(transactionHashes: string[]): Observable<TransactionStatus[]>

Static errorHandling

  • errorHandling(error: any): Promise<Error>

Generated using TypeDoc