Rektopsy

Why was I charged a fee for a failed Solana transaction?

Solana charges the network fee before running your transaction, so a failed one still costs the fee. What you actually lost, and when you pay nothing.

· 1 min read

0.000005 SOL: base fee per signature, charged even when it fails

It feels unfair: the swap didn't happen, but SOL left your wallet anyway. Here is what happened. Solana takes the fee from the fee payer before it runs the instructions. If an instruction fails, every other change is rolled back, but the fee stays paid, because validators still did the work of processing it.

How much is it?

  • A base fee of 5,000 lamports (0.000005 SOL) per signature. Most wallet transactions have one signature.
  • An optional priority fee, which your wallet or app sets to get processed faster. It is the compute unit limit times a price per unit, so it is paid on the limit you asked for, not on what was used.

The fee goes to the network, not to your wallet app, so there is no one who could refund it.

When you pay nothing

If the transaction never landed (for example its blockhash expired, or the wallet's simulation stopped it before sending) no fee is charged. An explorer won't find the signature at all.

Did I lose anything else?

Usually not. A failed swap moves no tokens. One thing to check is whether an earlier step in the same transaction succeeded on its own, but on Solana all instructions in a transaction succeed or fail together, so a failed transaction rolls back every step, apart from the fee.

How to stop paying for failures

  • Keep slippage sensible and retry with a fresh quote instead of resending the same transaction.
  • Don't force a transaction your wallet warned would fail. The simulation is usually right.
  • If an app sets a very high priority fee, you pay it on every attempt, failed or not.

Quick answers

Can I get a refund for a failed Solana transaction fee?

No. Network fees go to the network, not to your wallet app, and they are not refundable.

How much does a failed Solana transaction cost?

The base fee of 5,000 lamports (0.000005 SOL) per signature, plus any priority fee your wallet or app added.

Why didn't I get charged for some failed transactions?

Transactions that never reached the chain, such as ones with an expired blockhash or ones your wallet stopped after simulating, are not charged.

Sources

Why did my Solana transaction fail? The 6 usual causes"Slippage tolerance exceeded" on Solana: what it means and how to fix it"Blockhash not found" and expired transactions on Solana