Solana error codes › 0x1787

custom program error: 0x1787 (6023)

0x1787 is decimal 6023. Its meaning depends on the program that failed: NotEnoughTokensToSell in Pump.fun Bonding Curve, Overflow in PumpSwap AMM, TooMuchInputPaid in Raydium AMM V3 (CLMM) and 20 more below.

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

Pump.fun Bonding Curve: NotEnoughTokensToSell

The sell asks for more tokens than are available to sell.

What to do: Check the token balance of the selling wallet and sell at most that amount.

0x1787 by program

ProgramError
Pump.fun Bonding CurveNotEnoughTokensToSell
Not enough tokens to sell
The sell asks for more tokens than are available to sell.
PumpSwap AMMOverflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
Raydium AMM V3 (CLMM)TooMuchInputPaid
Too much input paid
Meteora DLMMRewardUninitialized
Reward not initialized
The name points to account state: an account was expected to exist (or not exist) already.
Meteora CP AMM (DAMM V2)InsufficientLiquidity
Insufficient liquidity
Meteora Dynamic Bonding CurveInvalidOwnerAccount
Invalid owner account
The name points to a permission check: the wrong signer or owner account was passed.
Orca WhirlpoolsInvalidTickArraySequence
Invalid tick array sequence provided for instruction.
MoonshotIncorrectDecimalPlacesBounds
Minimum Decimal Places cannot be lower than Maximum Decimal Places
OKX DEX Aggregation Router V2InvalidPool
Invalid pool
BoopOperatorAlreadyAdded
Operator already added
Meteora AMMMisMatchedCurve
New curve is mismatched with old curve
Drift V2PriceBandsBreached
Price Bands Breached
Heaven DEXInvalidPostFeeAmount
Invalid post fee amount
Jupiter DCAAddressMismatch
Address Mismatch
Magic Eden V2InvalidBasisPoints
Invalid BP
Metaplex Auction HouseInvalidBasisPoints
BP must be less than or equal to 10000
Metaplex BubblegumAlreadyUnverified
Metaplex Candy MachineInvalidString
Invalid string
Metaplex Fixed Price SaleFunderIsInvalid
Funder is invalid
Metaplex HydraRemoveSharesMustBeZero
Before you remove a wallet or NFT member please transfer the shares to another member
OpenBook V2OracleConfidence
an oracle does not reach the confidence threshold
TensorFrozenAmountMismatch
amount frozen doesnt match current price
TON Whales HoldersDepositBOverflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.

Same code, other formats

custom program error: 0x1787 · {"Custom":6023} · Custom(6023) · Error Number: 6023

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.

← 0x1786 · 0x1788 → · 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.