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 NSDecimalNumber *)gasLimit
                                fiatAmount:(nonnull NSDictionary<NSString *, NSDecimalNumber *> *)fiatAmount
                                   fiatFee:(nonnull NSDictionary<NSString *, NSDecimalNumber *> *)fiatFee;

    Swift

    init(txHash: String?, nonce: NSNumber?, fromAddress: String, toAddress: String?, data: String?, gasPrice: NSDecimalNumber?, gasLimit: NSDecimalNumber?, fiatAmount: [String : NSDecimalNumber], fiatFee: [String : NSDecimalNumber])
  • 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 NSDecimalNumber *)gasLimit
                                                       fiatAmount:(nonnull NSDictionary<NSString *, NSDecimalNumber *> *)fiatAmount
                                                          fiatFee:(nonnull NSDictionary<NSString *, NSDecimalNumber *> *)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 }
  • Wallet address of sender,

    Declaration

    Objective-C

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

    Swift

    var fromAddress: String { get }
  • Wallet address of receiver 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) NSDecimalNumber *gasLimit;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDictionary<NSString *, NSDecimalNumber *> *fiatAmount;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDictionary<NSString *, NSDecimalNumber *> *fiatFee;

    Swift

    var fiatFee: [String : NSDecimalNumber] { get }