SimulateTransactionResponse class
Response that will be received when submitting a trial contract invocation. See: https://soroban.stellar.org/api/methods/simulateTransaction
- Inheritance
-
- Object
- SorobanRpcResponse
- SimulateTransactionResponse
Constructors
-
SimulateTransactionResponse(Map<
String, dynamic> jsonResponse) -
SimulateTransactionResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
- cost ↔ SimulateTransactionCost?
-
Information about the fees expected, instructions used, etc.
getter/setter pair
- error ↔ SorobanRpcErrorResponse?
-
getter/setter pairinherited
-
events
↔ List<
String> ? -
Array of the events emitted during the contract invocation(s). The events are ordered by their emission time. (an array of serialized base64 strings representing XdrDiagnosticEvent)
getter/setter pair
- footprint → Footprint?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isErrorResponse → bool
-
no setterinherited
-
jsonResponse
↔ Map<
String, dynamic> -
getter/setter pairinherited
- latestLedger ↔ int?
-
number of the current latest ledger observed by the node when this response was generated.
getter/setter pair
- minResourceFee ↔ int?
-
Recommended minimum resource fee to add when submitting the transaction. This fee is to be added on top of the Stellar network fee.
getter/setter pair
- restorePreamble ↔ RestorePreamble?
-
It can only present on successful simulation (i.e. no error) of InvokeHostFunction operations. If present, it indicates
the simulation detected expired ledger entries which requires restoring with the submission of a RestoreFootprint
operation before submitting the InvokeHostFunction operation. The restorePreamble.minResourceFee and restorePreamble.transactionData fields should
be used to construct the transaction containing the RestoreFootprint
getter/setter pair
- resultError ↔ String?
-
(optional) only present if the transaction failed.
This field will include more details from stellar-core about why the invoke host function call failed.
getter/setter pair
-
results
↔ List<
SimulateTransactionResult> ? -
If error is present then results will not be in the response
There will be one results object for each operation in the transaction.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sorobanAuth
→ List<
SorobanAuthorizationEntry> ? -
no setter
- transactionData ↔ XdrSorobanTransactionData?
-
The recommended Soroban Transaction Data to use when submitting the simulated transaction. This data contains the refundable fee and resource usage information such as the ledger footprint and IO access data.
getter/setter pair
Methods
-
getFootprint(
) → Footprint? -
getSorobanAuth(
) → List< SorobanAuthorizationEntry> ? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited