pub struct SimulateResponse {
pub transaction_data: String,
pub min_resource_fee: String,
pub restore_preamble: Option<SimulateRestorePreamble>,
pub results: Vec<SimulateOperationResult>,
pub cost: Option<SimulateCost>,
pub latest_ledger: Option<String>,
pub events: Vec<Value>,
pub state_changes: Vec<Value>,
pub error: Option<String>,
}Expand description
Full response from the simulateTransaction endpoint.
Fields§
§transaction_data: StringBase64 XDR SorobanTransactionData returned for building the real transaction.
min_resource_fee: StringMinimum resource fee in stroops.
restore_preamble: Option<SimulateRestorePreamble>State restoration preamble data if the transaction requires expired state restoration.
results: Vec<SimulateOperationResult>Per-operation results (present for host-function invocation transactions).
cost: Option<SimulateCost>CPU and memory resource cost.
latest_ledger: Option<String>Ledger sequence the simulation was run against. Accepts both string and integer values from Testnet.
events: Vec<Value>Diagnostic events emitted during simulation.
state_changes: Vec<Value>State changes emitted during simulation.
error: Option<String>Optional simulation error (e.g. host function failure). A populated
error field indicates the simulation did not fully succeed.
Trait Implementations§
Source§impl Clone for SimulateResponse
impl Clone for SimulateResponse
Source§impl Debug for SimulateResponse
impl Debug for SimulateResponse
Source§impl<'de> Deserialize<'de> for SimulateResponse
impl<'de> Deserialize<'de> for SimulateResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SimulateResponse
impl PartialEq for SimulateResponse
Source§impl Serialize for SimulateResponse
impl Serialize for SimulateResponse
impl StructuralPartialEq for SimulateResponse
Auto Trait Implementations§
impl Freeze for SimulateResponse
impl RefUnwindSafe for SimulateResponse
impl Send for SimulateResponse
impl Sync for SimulateResponse
impl Unpin for SimulateResponse
impl UnsafeUnpin for SimulateResponse
impl UnwindSafe for SimulateResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more