Tx Doctor / Solana error library / Compute budget exceeded

ProgramFailedToComplete

Solana error: Compute budget exceeded (ProgramFailedToComplete)

The transaction ran out of compute units before it finished, so the program was aborted mid-way.

Why it happens

How to fix it

  1. Raise the compute unit limit in the interface (advanced settings) and retry.
  2. Split a large multi-hop swap into two smaller swaps.
  3. Use a simpler route or a different aggregator for that pair.

What it looks like in the logs

Program ... failed: Program failed to complete: exceeded maximum number of instructions allowed

Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.

Diagnose my transaction

Related errors

Account would not be rent exempt

Token 0x0

Not enough SOL to pay the fee

InsufficientFundsForFee

Not enough SOL for rent

InsufficientFundsForRent

Intrinsic gas too low

EVM · gas