Class SimulateTransactionResponse
java.lang.Object
org.stellar.sdk.responses.sorobanrpc.SimulateTransactionResponse
Response for JSON-RPC method simulateTransaction.
Note - The simulation response will have different model representations with different members present or absent depending on type of response that it is conveying. For example, the simulation response for invoke host function, could be one of three types: error, success, or restore operation needed.
Please refer to the latest Soroban simulateTransaction documentation for details on which members of the simulation response model are keyed to each type of response.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
LedgerEntryChange designates a change in a ledger entry.static final class
static final class
-
Constructor Summary
ConstructorDescriptionSimulateTransactionResponse
(String error, String transactionData, List<String> events, Long minResourceFee, List<SimulateTransactionResponse.SimulateHostFunctionResult> results, SimulateTransactionResponse.RestorePreamble restorePreamble, List<SimulateTransactionResponse.LedgerEntryChange> stateChanges, Long latestLedger) Creates a newSimulateTransactionResponse
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getError()
The elements inside can be parsed asDiagnosticEvent
objects.The field can be parsed asSorobanTransactionData
object.int
hashCode()
toString()
-
Constructor Details
-
SimulateTransactionResponse
public SimulateTransactionResponse(String error, String transactionData, List<String> events, Long minResourceFee, List<SimulateTransactionResponse.SimulateHostFunctionResult> results, SimulateTransactionResponse.RestorePreamble restorePreamble, List<SimulateTransactionResponse.LedgerEntryChange> stateChanges, Long latestLedger) Creates a newSimulateTransactionResponse
instance.- Parameters:
error
-transactionData
- The field can be parsed asSorobanTransactionData
object.events
- The elements inside can be parsed asDiagnosticEvent
objects.minResourceFee
-results
-restorePreamble
-stateChanges
-latestLedger
-
-
-
Method Details
-
parseTransactionData
-
parseEvents
-
getError
-
getTransactionData
The field can be parsed asSorobanTransactionData
object. -
getEvents
The elements inside can be parsed asDiagnosticEvent
objects. -
getMinResourceFee
-
getResults
-
getRestorePreamble
-
getStateChanges
-
getLatestLedger
-
equals
-
hashCode
public int hashCode() -
toString
-