ZKTransactionCryptoProperties

Objective-C

@interface ZKTransactionCryptoProperties : NSObject

Swift

class ZKTransactionCryptoProperties : NSObject

Record containing transaction’s crypto properties.

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithTxHash:(nullable NSString *)txHash
                                     nonce:(nullable NSNumber *)nonce
                               fromAddress:(nonnull NSString *)fromAddress
                                 toAddress:(nullable NSString *)toAddress
                                      data:(nullable NSString *)data
                                  gasPrice:(nullable NSDecimalNumber *)gasPrice
                                  gasLimit:(nullable NSNumber *)gasLimit
                                fiatAmount:(nullable NSDictionary<NSString *, NSNumber *> *)fiatAmount
                                   fiatFee:(nullable NSDictionary<NSString *, NSNumber *> *)fiatFee;

    Swift

    init(txHash: String?, nonce: NSNumber?, fromAddress: String, toAddress: String?, data: String?, gasPrice: NSDecimalNumber?, gasLimit: NSNumber?, fiatAmount: [String : NSNumber]?, fiatFee: [String : NSNumber]?)
  • Declaration

    Objective-C

    + (nonnull instancetype)transactionCryptoPropertiesWithTxHash:(nullable NSString *)txHash
                                                            nonce:(nullable NSNumber *)nonce
                                                      fromAddress:(nonnull NSString *)fromAddress
                                                        toAddress:(nullable NSString *)toAddress
                                                             data:(nullable NSString *)data
                                                         gasPrice:(nullable NSDecimalNumber *)gasPrice
                                                         gasLimit:(nullable NSNumber *)gasLimit
                                                       fiatAmount:(nullable NSDictionary<NSString *, NSNumber *> *)fiatAmount
                                                          fiatFee:(nullable NSDictionary<NSString *, NSNumber *> *)fiatFee;
  • Transaction hash or null.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *txHash;

    Swift

    var txHash: String? { get }
  • Ethereum transaction nonce if greater than 0 and it is Ethereum transaction, otherwise returns null.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *nonce;

    Swift

    var nonce: NSNumber? { get }
  • Ethereum wallet address of sender.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *fromAddress;

    Swift

    var fromAddress: String { get }
  • Ethereum wallet address of recipient or null, if it is Ethereum contract deploy.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *toAddress;

    Swift

    var toAddress: String? { get }
  • Transaction data or null.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *data;

    Swift

    var data: String? { get }
  • Ethereum gas price if it is Ethereum transaction, otherwise null.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDecimalNumber *gasPrice;

    Swift

    var gasPrice: NSDecimalNumber? { get }
  • Ethereum gas limit if it is Ethereum transaction, otherwise null.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSNumber *gasLimit;

    Swift

    var gasLimit: NSNumber? { get }
  • Value in fiat currencies at the time of the transaction submission.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDictionary<NSString *, NSNumber *> *fiatAmount;

    Swift

    var fiatAmount: [String : NSNumber]? { get }
  • Fee in fiat currencies at the time of the transaction submission.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDictionary<NSString *, NSNumber *> *fiatFee;

    Swift

    var fiatFee: [String : NSNumber]? { get }