FixesUpdated 23 Oct 20262 min read

How to decode Solana "custom program error" codes

The fix

The hex number is an error code from the program that failed. The same number means different things in different programs, so you need both the code and the program ID.

What the error means

Error processing Instruction N: custom program error: 0x…

The hex number is an error code from the program that failed. The same number means different things in different programs, so you need both the code and the program ID.

Where it comes fromAny Solana program
CodeHex code, read per program

Common codes

HexDecimalProgramName
0x11SPL TokenInsufficientFunds
0x44SPL TokenOwnerMismatch
0x1117SPL TokenAccountFrozen
0x1e30Raydium AMM v4ExceededSlippage
0x7d62006AnchorConstraintSeeds
0xbbf3007AnchorAccountOwnedByWrongProgram
0xbc43012AnchorAccountNotInitialized
0x17706000JupiterEmptyRoute
0x17716001JupiterSlippageToleranceExceeded
0x17726002pump.funTooMuchSolRequired
0x17736003pump.funTooLittleSolReceived
0x17746004PumpSwapExceededSlippage
0x17756005pump.fun / Raydium CPMMBondingCurveComplete / ExceededSlippage
0x17816017Raydium CLMMPriceSlippageCheck
0x17986040pump.funBuyNotEnoughSolToCoverRent
0x17a76055Meteora DLMMLiquidityLocked

How to fix it

  1. Open the failed transaction in a Solana explorer and find the program that logged the error.
  2. Convert the hex code to decimal, for example 0x1771 is 6001 and 0xbc4 is 3012.
  3. Codes from 6000 (0x1770) up are the program's own errors; look them up in its published error list or IDL.
  4. Codes 100 to 5000 in Anchor programs are Anchor framework errors, such as 2006 ConstraintSeeds or 3012 AccountNotInitialized.
  5. Small codes (0x0 to 0x13) in the SPL Token program are token errors, such as 0x1 InsufficientFunds and 0x11 AccountFrozen.

If that is not it

  • Plain-text errors like "Blockhash not found" or "Insufficient funds for fee" come from the Solana runtime, not a program.

More fixes: how to decode any Solana error code and why Solana transactions fail.

Source

Error text and code from Anchor, SPL Token, pump.fun, Jupiter, Raydium and Meteora error definitions, read on 24 October 2026.

Questions people ask

What is 0x1771?

Decimal 6001. On Jupiter it is SlippageToleranceExceeded; see [0x1771](/en/resources/errors/custom-program-error-0x1771).

What is 0x1?

In SPL Token it is InsufficientFunds; see [0x1](/en/resources/errors/custom-program-error-0x1-insufficient-funds).

Where do Anchor custom errors start?

At 6000 (0x1770).