Skip to main content

SimulationResult

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

type SimulationResult {
effects: TransactionEffects
error: String
outputs: [CommandResult!]
}

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.outputs ● [CommandResult!] list object

The intermediate outputs for each command of the transaction simulation, including contents of mutated references and return values.

Returned By

simulateTransaction query