OperationResponse

public struct OperationResponse : Codable

Structure representing the response returned from RPC endpoints such as .../preapply/operations

  • Declaration

    Swift

    public let contents: [OperationResponseContent]
  • Check if the operation(s) have been backtracked or reversed due to a failure

    Declaration

    Swift

    public func isFailed() -> Bool
  • Return the last error object from each internal result. The last error object is the one that contains the location of the error in the smart contract and the with string, giving the most debugable information

    Declaration

    Swift

    public func errors() -> [OperationResponseInternalResultError]