-
Declaration
Objective-C
- (nonnull instancetype)initWithType:(nonnull NSString *)type signedTransaction:(nullable NSString *)signedTransaction account:(nonnull ZKAccount *)account destination:(nullable NSString *)destination amount:(nullable NSDecimalNumber *)amount data:(nullable NSString *)data fee:(nonnull NSDecimalNumber *)fee nonce:(nonnull NSString *)nonce;
Swift
init(type: String, signedTransaction: String?, account: ZKAccount, destination: String?, amount: NSDecimalNumber?, data: String?, fee: NSDecimalNumber, nonce: String)
-
Declaration
Objective-C
+ (nonnull instancetype)composedTransactionWithType:(nonnull NSString *)type signedTransaction:(nullable NSString *)signedTransaction account:(nonnull ZKAccount *)account destination:(nullable NSString *)destination amount:(nullable NSDecimalNumber *)amount data:(nullable NSString *)data fee:(nonnull NSDecimalNumber *)fee nonce:(nonnull NSString *)nonce;
-
Transaction type, ‘FIAT’, ‘CRYPTO’ or ‘NOMINATED’.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *type;
Swift
var type: String { get }
-
Signed transaction for a crypto transaction, null otherwise.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *signedTransaction;
Swift
var signedTransaction: String? { get }
-
Transaction destination, i.e. destination address for crypto transactions or user id for fiat transactions.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *destination;
Swift
var destination: String? { get }
-
Transaction amount in account currency.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDecimalNumber *amount;
Swift
var amount: NSDecimalNumber? { get }
-
Optional transaction data if available.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *data;
Swift
var data: String? { get }
-
Maximum transaction fee.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSDecimalNumber *fee;
Swift
var fee: NSDecimalNumber { get }
-
Transaction nonce to prevent double spend.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *nonce;
Swift
var nonce: String { get }