SimulateTransactionResponse class

Response that will be received when submitting a trial contract invocation. The response will include the anticipated affects the given transaction will have on the network. Additionally, information needed to build, sign, and actually submit the transaction will be provided.

See: https://developers.stellar.org/network/soroban-rpc/api-reference/methods/simulateTransaction

Inheritance

Constructors

SimulateTransactionResponse(Map<String, dynamic> jsonResponse)
SimulateTransactionResponse.fromJson(Map<String, dynamic> json)
factory

Properties

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?
The sequence number of the latest ledger known to Soroban RPC at the time it handled the request.
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>?
(optional) - This array will only have one element: the result for the Host Function invocation. Only present on successful simulation (i.e. no error) of InvokeHostFunction operations.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sorobanAuth List<SorobanAuthorizationEntry>?
no setter
stateChanges List<LedgerEntryChange>?
(optional) - On successful simulation of InvokeHostFunction operations, this field will be an array of LedgerEntrys before and after simulation occurred.
getter/setter pair
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?
Returns the footprint from the transaction data if available.
getSorobanAuth() List<SorobanAuthorizationEntry>?
Returns the soroban authorization entries if available.
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