Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Update simulateTransaction.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio authored Sep 16, 2023
1 parent 6a0ef9c commit dbfabe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/methods/simulateTransaction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Submit a trial contract invocation to simulate how it would be executed by the n
- `auth`: `<xdr.ContractAuth[]>` array of serialized base64 strings - Per-address authorizations recorded when simulating this Host Function call.
- `transactionData`: `<xdr.SorobanTransactionData>` (optional) serialized base64 string - 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 (serialized in a base64 string). Not present in case of error.
- `events`: `<xdr.DiagnosticEvent[]>` (optional) array of serialized base64 strings - Array of the events emitted during the contract invocation. The events are ordered by their emission _time_. (an array of serialized base64 strings). Only present when simulating of `InvokeHostFunction` operations, note that it can be present on error, providing extra context about what failed.
- `restorePreamble`: `<object>` (optional) - 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 `minResourceFee` and `transactionData` fields should be used to construct the transaction containing the `RestoreFootprint` operation.
- `restorePreamble`: `<object>` (optional) - It can only be present on successful simulation (i.e. no error) of `InvokeHostFunction` operations. If present, it indicates that the simulation detected expired ledger entries which need to be restored before the submission of the `InvokeHostFunction` operation. The `minResourceFee` and `transactionData` fields should be used to submit a transaction containing a `RestoreFootprint` operation.
- `minResourceFee`: `<string>` stringified number - Recommended minimum resource fee to add when submitting the `RestoreFootprint` operation. This fee is to be added on top of the [Stellar network fee](https://developers.stellar.org/docs/encyclopedia/fees-surge-pricing-fee-strategies#network-fees-on-stellar).
- `transactionData`: `<xdr.SorobanTransactionData>` serialized base64 string - The recommended Soroban Transaction Data to use when submitting the `RestoreFootprint` operation.
- `latestLedger`: `<string>` stringified number - Current latest closed ledger (LCL) observed by the node when this response was generated. Always present.
Expand Down

0 comments on commit dbfabe5

Please sign in to comment.