OutgoingTransaction
public struct OutgoingTransaction
Used to pass the data to send transaccions.
-
The address the transaction is send from.
Declaration
Swift
public var from: String
-
The account type at the given address.
Declaration
Swift
public var fromType: AccountType?
-
The address the transaction is directed to.
Declaration
Swift
public var to: String
-
The account type at the given address.
Declaration
Swift
public var toType: AccountType?
-
Integer of the value (in smallest unit) sent with this transaction.
Declaration
Swift
public var value: Int
-
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?
-
OutgoingTransaction initialization.
Declaration
Swift
public init(from: String, fromType: AccountType? = .basic, to: String, toType: AccountType? = .basic, value: Int, fee: Int, data: String? = nil)
Parameters
from
The address the transaction is send from.
fromType
The account type at the given address.
to
The address the transaction is directed to.
toType
The account type at the given address.
value
Integer of the value (in smallest unit) sent with this transaction.
fee
Integer of the fee (in smallest unit) for this transaction.
data
Hex-encoded contract parameters or a message.