Solana error codes › 0x179a

custom program error: 0x179a (6042)

0x179a is decimal 6042. Its meaning depends on the program that failed: BuySlippageBelowMinTokensOut in Pump.fun Bonding Curve, MaxTokenOverflow in Raydium AMM V3 (CLMM), PoolDisabled in Meteora DLMM and 12 more below.

Programs that use Anchor-style numbering start their own error list at 6000 (0x1770), so 6042 is the error at index 42 of the failing program's list. The same number means something different in every program.

0x179a by program

ProgramError
Pump.fun Bonding CurveBuySlippageBelowMinTokensOut
Slippage: Would buy less tokens than expected min_tokens_out
The name points to a slippage or minimum-output check: the price moved past the limit set in the transaction.
Raydium AMM V3 (CLMM)MaxTokenOverflow
Max token overflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
Meteora DLMMPoolDisabled
Pool disabled
The name points to a feature or pool state that currently blocks this action.
Meteora CP AMM (DAMM V2)InvalidPoolCreator
Invalid pool creator
Meteora Dynamic Bonding CurveInvalidFeeRateLimiter
Invalid fee rate limiter
Orca WhirlpoolsDuplicateTwoHopPool
Duplicate two hop pool
OKX DEX Aggregation Router V2TrimAccountIsNone
Trim account is none
Meteora AMMTypeCastFailed
Type cast error
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
Drift V2InvalidOrder
Heaven DEXSimpleAmmBaseTokenCannotHaveFreezeAuthority
Simple amm base token mint cannot have freeze authority
Jupiter DCAUnexpectedWSOLLeftover
Should not have WSOL leftover in DCA out-token account
Metaplex Auction HouseAuctioneerAuthorityMismatch
Auctioneer Authority Mismatch
Metaplex Candy MachineIncorrectFreezeAta
Incorrect freeze ATA address.
Metaplex Fixed Price SaleWrongCollectionMintKey
Wrong collection mint key
OpenBook V2NonEmptyOpenOrdersPosition
Cannot close a non-empty open orders account

Same code, other formats

custom program error: 0x179a · {"Custom":6042} · Custom(6042) · Error Number: 6042

How to tell which program failed

  1. Open the failed transaction in an explorer (or the simulation result in your code) and read the program logs.
  2. Find the line Program <address> failed: custom program error: 0x…. If several programs failed with the same code, the first one listed is the deepest call, the one that raised it.
  3. Look the code up for that program. Error processing Instruction 2 is a zero-based index, so it points to the third instruction (often the first one after two Compute Budget instructions).

Decode your exact error

Free, no sign-up, nothing to connect. Works offline from a bundled list; we do not look anything up on-chain.

Swapping a token you do not know? A free Rugsight check shows mint and freeze authority, Token-2022 extensions, holder concentration and liquidity before you trade.

← 0x1799 · 0x179b → · All Solana error codes

Data: program error lists from published IDLs (solana-idls 1.2.1, MIT) and the System, SPL Token, Token-2022 and Associated Token Account source code, snapshot 2026-11-16. Programs can be upgraded and add or change errors; the failing program's current IDL is the final word.