Options
All
  • Public
  • Public/Protected
  • All
Menu

Module infrastructure/transaction/CreateTransactionFromDTO

Index

Functions

Const extractMosaics

  • extractMosaics(mosaics: any): Mosaic[]
  • Extract mosaics from encoded UInt64 notation.

    If most significant bit of byte 0 is set, then it is a namespaceId. If most significant bit of byte 0 is not set, then it is a mosaicId.

    Parameters

    • mosaics: any

      The DTO array of mosaics (with UInt64 Id notation)

    Returns Mosaic[]

Const extractRecipient

  • Extract recipientAddress value from encoded hexadecimal notation.

    If bit 0 of byte 0 is not set (e.g. 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1.

    Parameters

    • recipientAddress: any

      Encoded hexadecimal recipientAddress notation

    Returns UnresolvedAddress

Generated using TypeDoc