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
fromThe address the transaction is send from.
fromTypeThe account type at the given address.
toThe address the transaction is directed to.
toTypeThe account type at the given address.
valueInteger of the value (in smallest unit) sent with this transaction.
feeInteger of the fee (in smallest unit) for this transaction.
dataHex-encoded contract parameters or a message.
OutgoingTransaction Structure Reference