Simulation success does not guarantee on-chain success. If ledger state changes between simulation and submission (for example, another transaction modifies an account), the transaction may still fail.
Request
Transaction (object)
required
A compiled transaction (COMPILED state or later).
CommitmentLevel (enum)
Optional. Ledger state to simulate against. Defaults to CONFIRMED.
commitment_level is optional. When omitted or set to
COMMITMENT_LEVEL_UNSPECIFIED, the service defaults to COMMITMENT_LEVEL_CONFIRMED. See CommitmentLevel for trade-offs between processed, confirmed, and finalized.Response
bool
True if the simulation completed without errors.
string
Error message if the simulation failed. Empty when
success is true.string[]
Program execution log lines from the simulation run. Useful for debugging instruction failures.