ZKTransaction
@interface ZKTransaction : NSObject
Record containing transaction details.
accountId
@property (nonatomic, readonly, nonnull) NSString * accountId;
Returns the unique account identifier that transaction belongs to.
coin
@property (nonatomic, readonly, nonnull) NSString * coin;
Returns coin name in string format, e.g. Bitcoin, Ether.
confirmedAt
@property (nonatomic, readonly, nullable) NSNumber * confirmedAt;
Transaction confirmed timestamp.
cost
@property (nonatomic, readonly, nonnull) NSString * cost;
Returns transaction cost in transaction currency.
data
@property (nonatomic, readonly, nullable) NSString * data;
Returns transaction data if available, otherwise returns null.
fiatCost
@property (nonatomic, readonly, nonnull) NSDictionary<NSString *, NSString *> * fiatCost;
Returns map of transaction cost in available fiat values at the time of the transaction.
fiatValue
@property (nonatomic, readonly, nonnull) NSDictionary<NSString *, NSString *> * fiatValue;
Returns map of transaction value in available fiat values at the time of the transaction.
fromAddress
@property (nonatomic, readonly, nonnull) NSString * fromAddress;
Returns sender blockchain address.
fromUserId
@property (nonatomic, readonly, nullable) NSString * fromUserId;
Returns sender user id if available, otherwise null.
gasLimit
@property (nonatomic, readonly, nullable) NSString * gasLimit;
Returns the gas limit used to send the transaction. See Send Transaction for details.
gasPrice
@property (nonatomic, readonly, nullable) NSString * gasPrice;
Returns the gas price used to send the transaction. See Send Transaction for details.
id
@property (nonatomic, readonly, nonnull) NSString * id;
Returns the unique transaction identifier.
network
@property (nonatomic, readonly) ZKNetworkType network;
Returns transaction network type.
nonce
@property (nonatomic, readonly, nullable) NSNumber * nonce;
Returns nonce for Ethereum account if greater than 0, otherwise returns null.
status
@property (nonatomic, readonly) ZKTransactionStatus status;
Returns TransactionStatus enum identifying pending, confirmed, failed, resubmitted and cancelled transaction statuses.
submittedAt
@property (nonatomic, readonly, nullable) NSNumber * submittedAt;
Returns transaction submitted timestamp.
symbol
@property (nonatomic, readonly, nullable) NSString * symbol;
Returns coin symbol in string format, e.g. BTC, ETH.
timestamp
@property (nonatomic, readonly, nullable) NSNumber * confirmedAt;
Returns transaction confirmed timestamp for confirmed transactions and transaction submitted timestamp for pending transactions.
toAddress
@property (nonatomic, readonly, nullable) NSString * fromUserId;
Returns recipient blockchain address.
toUserId
@property (nonatomic, readonly, nullable) NSString * toUserId;
Returns recipient user id if available, otherwise null.
txHash
@property (nonatomic, readonly, nullable) NSString * txHash;
Returns transaction blockchain hash.
type
@property (nonatomic, readonly) ZKTransactionType type;
Returns ZKTransactionType enum identifying incoming and outgoing transaction type.
value
@property (nonatomic, readonly, nullable) NSString * value;
Returns transaction value in transaction currency.
−description
- (NSString *)description;
−hash
- (NSUInteger)hash;
−isEqual:
- (BOOL)isEqual:(id)other;