TzKTOperation
public struct TzKTOperation : Codable
A model matching the response that comes back from TzKT’s API: v1/operations/<operation-hash>
-
Type of operation (e.g. transaction, delegation, reveal etc)
Declaration
Swift
public let type: String -
Unique id to denote the operation
Declaration
Swift
public let id: Int -
The block level it was injected at
Declaration
Swift
public let level: Int -
Timestamp it was injected at
Declaration
Swift
public let timestamp: String -
The hash of the injected block
Declaration
Swift
public let block: String -
The operation hash
Declaration
Swift
public let hash: String -
The users numerical counter of the operation
Declaration
Swift
public let counter: Int -
Status of the operation (e.g. applied or failed)
Declaration
Swift
public let status: String -
Optional array of errors encountered while trying to inject the operation
Declaration
Swift
public let errors: [TzKTOperationError]? -
Helper to detect a failed transation by searching for a status of “failed”, “backtracked” or “skipped”
Declaration
Swift
public func isFailed() -> Bool -
Helper to detect if this operation contains an error
Declaration
Swift
public func containsError() -> Bool
Install in Dash