Solana Fee Calculator
All tools

“Transaction simulation failed” on Solana

The RPC ran the transaction before sending it, and it failed.

Transaction simulation failed: Error processing Instruction 0

Cause

By default, sending a transaction through an RPC first simulates it (the preflight check). If the simulation fails, the RPC refuses to forward it and returns the error and the program logs.

The real reason is in the logs: insufficient funds, slippage exceeded, an account that does not exist yet, a compute limit that is too low, and so on.

Fix

  • Read the logs: the last program line before the failure names the instruction and its error.
  • Paste the serialized transaction into the simulator here to see the compute units it consumed and the logs.
  • Do not just skip preflight to “make it go through” — a transaction that fails on chain still pays its fee.

Fee charged? No, not for a simulation. Nothing was sent to the network.

FAQ

What does “Transaction simulation failed: Error processing Instruction 0” mean?

By default, sending a transaction through an RPC first simulates it (the preflight check). If the simulation fails, the RPC refuses to forward it and returns the error and the program logs. The real reason is in the logs: insufficient funds, slippage exceeded, an account that does not exist yet, a compute limit that is too low, and so on.

How do I fix it?

Read the logs: the last program line before the failure names the instruction and its error. Paste the serialized transaction into the simulator here to see the compute units it consumed and the logs. Do not just skip preflight to “make it go through” — a transaction that fails on chain still pays its fee.

Was I charged a fee?

No, not for a simulation. Nothing was sent to the network.