IotaTransaction

public struct IotaTransaction

Represents a Iota Transaction.

  • The value.

    Declaration

    Swift

    public internal(set) var value: Int64 = 0
  • The address.

    Declaration

    Swift

    public internal(set) var address = ""
  • tag

    The tag.

    Declaration

    Swift

    public internal(set) var tag = ""
  • The hash.

    Declaration

    Swift

    public internal(set) var hash: String = ""
  • The signature fragments.

    Declaration

    Swift

    public internal(set) var signatureFragments: String = ""
  • The obsolete tag.

    Declaration

    Swift

    public internal(set) var obsoleteTag: String = ""
  • The timestamp.

    Declaration

    Swift

    public internal(set) var timestamp: UInt64 = 0
  • The current index in the bundle.

    Declaration

    Swift

    public internal(set) var currentIndex: UInt = 0
  • The last index of the bundle.

    Declaration

    Swift

    public internal(set) var lastIndex: UInt = 0
  • The bundle hash.

    Declaration

    Swift

    public internal(set) var bundle: String = ""
  • The trunk transaction hash.

    Declaration

    Swift

    public internal(set) var trunkTransaction: String = ""
  • The branch transaction hash.

    Declaration

    Swift

    public internal(set) var branchTransaction: String = ""
  • The nonce found from the PoW.

    Declaration

    Swift

    public internal(set) var nonce: String = ""
  • The persistence of the bundle.

    Declaration

    Swift

    public internal(set) var persistence: Bool = false
  • The attachment timestamp.

    Declaration

    Swift

    public internal(set) var attachmentTimestamp: UInt64 = 0
  • The lower bound of the attachment timestamp.

    Declaration

    Swift

    public internal(set) var attachmentTimestampLowerBound: UInt64 = 0
  • The upper bound of the attachment timestamp.

    Declaration

    Swift

    public internal(set) var attachmentTimestampUpperBound: UInt64 = 0
  • Constructor for IotaTransaction.

    Declaration

    Swift

    init(trytes: String)

    Parameters

    trytes

    The Trytes.

  • Converts a valid Trytes to a IotaTransaction object.

    Declaration

    Swift

    mutating func transactionObject(trytes: String)

    Parameters

    trytes

    The Trytes.

  • Returns a String of Trytes from the current state.

    Declaration

    Swift

    var trytes: String
  • Implements the Equatable protocol for IotaTransaction.

    Declaration

    Swift

    public static func ==(lhs: IotaTransaction, rhs: IotaTransaction) -> Bool

    Parameters

    lhs

    A IotaTransaction.

    rhs

    Another IotaTransaction.

    Return Value

    true if the two objects contain the same data, false otherwise.