SimulateTransactionResult

public struct SimulateTransactionResult : Decodable, Sendable

Individual result from a simulated transaction operation.

Part of SimulateTransactionResponse, contains the return value and authorization requirements for a single host function invocation.

Contains:

  • Return value from the contract function
  • Authorization entries required for execution

For most contract calls, SimulateTransactionResponse.results will contain a single element with the contract’s return value.

See also:

  • [SimulateTransactionResponse] for the complete simulation response
  • Array of serialized base64 strings - Per-address authorizations recorded when simulating this Host Function call.

    Declaration

    Swift

    public let auth: [String]
  • xdr

    Serialized base64 string - return value of the Host Function call.

    Declaration

    Swift

    public let xdr: String
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Converts the return value of the Host Function call to a SCValXDR object

    Declaration

    Swift

    public var value: SCValXDR? { get }