Options
All
  • Public
  • Public/Protected
  • All
Menu

External module core

Index

Functions

getAttachmentVersion

  • getAttachmentVersion(transaction: Transaction): string
  • Get the transaction attachment version identifier

    Attachment types are identified by a field version.

    Parameters

    • transaction: Transaction

      The transaction to be checked

    Returns string

    return Identifier, if exists, otherwise undefined

getContractDatablock

  • getContractDatablock(contract: Contract, position: number, length?: number): string
  • Extracts a variables value as hexadecimal string from a contract's machine data

    This is a generic function to extract arbitrary data from a contract. I's recommended to use the ContractHelper class instead

    Parameters

    • contract: Contract
    • position: number

      The variables position

    • Default value length: number = 16

      The length of data to be extracted

    Returns string

    The value as hexadecimal string (already considering endianness)

getRecipientAmountsFromMultiOutPayment

getRecipientsAmount

  • getRecipientsAmount(recipientId: string, transaction: Transaction): number
  • Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

    Parameters

    • recipientId: string

      The numeric id of the recipient

    • transaction: Transaction

      The payment transaction

    Returns number

    the amount in BURST (not NQT)

isAttachmentVersion

  • isAttachmentVersion(transaction: Transaction, versionIdentifier: string): boolean
  • Checks if a transaction attachment is of specific version

    Parameters

    • transaction: Transaction

      The transaction to be checked

    • versionIdentifier: string

      The version string, i.e. MultiOutCreation

    Returns boolean

    true, if version string matches

Const isMultiOutSameTransaction

  • isMultiOutSameTransaction(transaction: Transaction): boolean

Const isMultiOutTransaction

  • isMultiOutTransaction(transaction: Transaction): boolean

Generated using TypeDoc