Transaction

public struct Transaction : Decodable

Transaction returned by the server.

  • Hex-encoded hash of the transaction.

    Declaration

    Swift

    public var hash: String
  • Hex-encoded hash of the block containing the transaction.

    Declaration

    Swift

    public var blockHash: String?
  • Height of the block containing the transaction.

    Declaration

    Swift

    public var blockNumber: Int?
  • UNIX timestamp of the block containing the transaction.

    Declaration

    Swift

    public var timestamp: Int?
  • Number of confirmations of the block containing the transaction.

    Declaration

    Swift

    public var confirmations: Int?
  • Index of the transaction in the block.

    Declaration

    Swift

    public var transactionIndex: Int?
  • Hex-encoded address of the sending account.

    Declaration

    Swift

    public var from: String
  • Nimiq user friendly address (NQ-address) of the sending account.

    Declaration

    Swift

    public var fromAddress: String
  • to

    Hex-encoded address of the recipient account.

    Declaration

    Swift

    public var to: String
  • Nimiq user friendly address (NQ-address) of the recipient account.

    Declaration

    Swift

    public var toAddress: String
  • Integer of the value (in smallest unit) sent with this transaction.

    Declaration

    Swift

    public var value: Int
  • fee

    Integer of the fee (in smallest unit) for this transaction.

    Declaration

    Swift

    public var fee: Int
  • Hex-encoded contract parameters or a message.

    Declaration

    Swift

    public var data: String?
  • Bit-encoded transaction flags.

    Declaration

    Swift

    public var flags: Int