What the error means
Program log: AnchorError ... Error Code: TooMuchSolRequired. Error Number: 6002. Error Message: slippage: Too much SOL required to buy the given amount of tokens.
Your buy would cost more SOL than your slippage limit allows, because other buyers moved the price on the bonding curve before your transaction ran.
| Where it comes from | pump.fun bonding curve program |
| Code | 6002 (0x1772) |
How to fix it
- Raise slippage a little, for example from 10% to 15% on fast-moving launches, accepting a worse price.
- Buy a smaller amount; larger buys move further along the curve.
- Raise the priority fee so your buy lands earlier in the block.
- Retry with a fresh quote.
If that is not it
- On graduated coins, the trade goes to PumpSwap and fails with PumpSwap errors instead, see PumpSwap error 6004.
More fixes: how to decode any Solana error code and why Solana transactions fail.
Source
Error text and code from pump.fun program IDL (pump-fun/pump-public-docs, idl/pump.json), read on 24 October 2026.

