Options
All
  • Public
  • Public/Protected
  • All
Menu

Metadata http repository.

since

1.0

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected Readonly url

url: string

Methods

Private buildMetadata

  • buildMetadata(metadata: MetadataDTO): Metadata

Protected call

  • call<D, M>(remoteCall: Promise<{ body: D; response: IncomingMessage }>, mapper: (value: D, index: number) => 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<{ body: D; response: IncomingMessage }>

      the remote call

    • mapper: (value: D, index: number) => M

      the mapper from dto to the model object.

        • (value: D, index: number): M
        • Parameters

          • value: D
          • index: number

          Returns M

    Returns Observable<M>

createNetworkTypeObservable

errorHandling

  • errorHandling(error: any): Error

getAccountMetadata

getAccountMetadataByKey

  • getAccountMetadataByKey(address: Address, key: string): Observable<Metadata[]>

getAccountMetadataByKeyAndSender

  • getAccountMetadataByKeyAndSender(address: Address, key: string, publicKey: string): Observable<Metadata>

getMosaicMetadata

getMosaicMetadataByKey

  • getMosaicMetadataByKey(mosaicId: MosaicId, key: string): Observable<Metadata[]>

getMosaicMetadataByKeyAndSender

  • getMosaicMetadataByKeyAndSender(mosaicId: MosaicId, key: string, publicKey: string): Observable<Metadata>

getNamespaceMetadata

getNamespaceMetadataByKey

getNamespaceMetadataByKeyAndSender

  • getNamespaceMetadataByKeyAndSender(namespaceId: NamespaceId, key: string, publicKey: string): Observable<Metadata>

queryParams

transactionFilter

Generated using TypeDoc