Error codes / Pump.fun Bonding Curve
TooMuchSolRequired
Pump.fun Bonding Curve · Custom(6002) · 0x1772
custom program error: 0x1772
What it means
The swap would have paid out less than the minimum this transaction allowed (or cost more than its maximum). The price moved between the moment the quote was taken and the moment the transaction executed, by more than the slippage tolerance set in the swap.
The program's own message: “slippage: Too much SOL required to buy the given amount of tokens.”
What to do
Get a fresh quote and resend with the same tolerance; the price has moved on. Widen the tolerance only if it keeps failing on a fast-moving token, and know that a wide tolerance is what sandwich bots feed on.
Seen on mainnet
The classic buy: tokens out is fixed, max_sol_cost is the limit, and the curve moved past it. This instruction carries a limit, not a tolerance, so a fresh quote is the wrong idea. TxWhy keeps the amount and every account, and moves only the limit to the price the chain itself computed in the failed run (read from the program's own check in the logs, or from a simulation with the limit lifted), with a 1% tolerance and never more than 25% against you. The result is returned only after it passes simulation, and the offline verifier refuses anything else. A SOL wrap funding the buy may rise with the limit, within the same cap.
From replaying real landed failures through the repair engine, around the clock since September 21, 2026. Every verdict and its reason is on the failure index.
Have the transaction that failed with this?
Paste its signature. TxWhy shows the exact instruction and inner call that raised the error, and rebuilds the transaction when the cause is one it can fix (compute limit, expired blockhash, priority fee, a stale swap quote or a moved limit).
Code 6002 means something else in other programs
Custom codes are private to each program. Check which program actually raised it: it is the innermost failed call, not necessarily the program you called.
- WrongRatioBonkSwap
- AmountZeroBoop
- InsufficientDepositDrift V2
- InvalidUserTokenHeaven DEX
- InvalidCalculationJupiter Aggregator v4
- InvalidCalculationJupiter Aggregator v6
- InvalidPairJupiter DCA
- InvalidMaxTakingAmountJupiter Limit Order
- NotEnoughAccountsLighthouse
- UninitializedAccountMagic Eden V2
- UninitializedAccountMetaplex Auction House
- AuctionEndedMetaplex Auctioneer