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
A compiled transaction (COMPILED state or later).
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
True if the simulation completed without errors.
Error message if the simulation failed. Empty when
success is true.Program execution log lines from the simulation run. Useful for debugging instruction failures.