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
Nested ClassesModifier and TypeClassDescriptionstatic final classLedgerEntryChange designates a change in a ledger entry.static final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionSimulateTransactionResponse(String error, String transactionData, List<String> events, Long minResourceFee, List<SimulateTransactionResponse.SimulateHostFunctionResult> results, SimulateTransactionResponse.RestorePreamble restorePreamble, List<SimulateTransactionResponse.LedgerEntryChange> stateChanges, Long latestLedger) Creates a newSimulateTransactionResponseinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetError()The elements inside can be parsed asDiagnosticEventobjects.The field can be parsed asSorobanTransactionDataobject.inthashCode()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 newSimulateTransactionResponseinstance.- Parameters:
error-transactionData- The field can be parsed asSorobanTransactionDataobject.events- The elements inside can be parsed asDiagnosticEventobjects.minResourceFee-results-restorePreamble-stateChanges-latestLedger-
-
-
Method Details
-
parseTransactionData
-
parseEvents
-
getError
-
getTransactionData
The field can be parsed asSorobanTransactionDataobject. -
getEvents
The elements inside can be parsed asDiagnosticEventobjects. -
getMinResourceFee
-
getResults
-
getRestorePreamble
-
getStateChanges
-
getLatestLedger
-
equals
-
hashCode
public int hashCode() -
toString
-