FixesUpdated 23 Oct 20261 min read

pump.fun error 6042 (0x179a): BuySlippageBelowMinTokensOut

The fix

The buy, sized in SOL, would return fewer tokens than the minimum your slippage setting allows, because the price rose before it ran.

Tools covered

  1. Pump.funA Solana platform for creating and trading tokens on a bonding curve, with automatic migration to PumpSwap.UpVisit

What the error means

Error Code: BuySlippageBelowMinTokensOut. Error Number: 6042. Error Message: Slippage: Would buy less tokens than expected min_tokens_out

The buy, sized in SOL, would return fewer tokens than the minimum your slippage setting allows, because the price rose before it ran.

Where it comes frompump.fun bonding curve program
Code6042 (0x179a)

How to fix it

  1. Raise slippage slightly or buy a smaller amount.
  2. Raise the priority fee to land earlier.
  3. Retry with a fresh quote.

If that is not it

  • This is the SOL-in version of slippage; 6002 is the tokens-out version.

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.

Questions people ask

How is 6042 different from 6002?

6042 fires when you spend a fixed SOL amount and get too few tokens; 6002 when you ask for a fixed token amount and it costs too much SOL.

Will retrying work?

Often, once the burst of buying passes or with slightly higher slippage.

pump.fun error 6042 (0x179a): BuySlippageBelowMinTokensOut