Skip to main content

SimulationResult

The result of simulating a transaction, including the predicted effects, events, and any errors.

type SimulationResult {
effects: TransactionEffects
error: String
events: [Event!]
}

Fields

SimulationResult.effects ● TransactionEffects object

The predicted effects of the transaction if it were executed.

None if the simulation failed due to an error.

SimulationResult.error ● String scalar

Error message if the simulation failed.

None if the simulation was successful.

SimulationResult.events ● [Event!] list object

The events that would be emitted if the transaction were executed.

None if the simulation failed or no events would be emitted.

Returned By

simulateTransaction query