“Exceeded CUs meter” / “Computational budget exceeded”
The transaction used more compute units than the limit it set.
Program failed to complete: exceeded CUs meter at BPF instruction
Cause
A transaction runs with a compute-unit limit: the value of its SetComputeUnitLimit instruction, or, if it sets none, a default per instruction (200,000 for a program instruction, 3,000 for a builtin). When execution reaches that limit, the runtime stops it.
Common reasons: a limit copied from another transaction, a swap that takes a longer route than usual, or a program that does more work for this particular input.
Fix
- Simulate the transaction and set the limit to the units it consumed plus a margin (for example 10–20 %).
- Remember the priority fee is charged on the limit you set, not on what is used — a generous limit makes a high price more expensive.
- The maximum for one transaction is 1,400,000 compute units.
Fee charged? Yes. The transaction landed, so the base fee and the priority fee on the full limit were paid.
FAQ
What does “Program failed to complete: exceeded CUs meter at BPF instruction” mean?
A transaction runs with a compute-unit limit: the value of its SetComputeUnitLimit instruction, or, if it sets none, a default per instruction (200,000 for a program instruction, 3,000 for a builtin). When execution reaches that limit, the runtime stops it. Common reasons: a limit copied from another transaction, a swap that takes a longer route than usual, or a program that does more work for this particular input.
How do I fix it?
Simulate the transaction and set the limit to the units it consumed plus a margin (for example 10–20 %). Remember the priority fee is charged on the limit you set, not on what is used — a generous limit makes a high price more expensive. The maximum for one transaction is 1,400,000 compute units.
Was I charged a fee?
Yes. The transaction landed, so the base fee and the priority fee on the full limit were paid.
“Insufficient funds for rent”“Blockhash not found” when sending a Solana transaction“Transaction simulation failed”“Found no record of a prior credit” / “insufficient funds for fee”