Solana error codes › 0x1785
0x1785 is decimal 6021. Its meaning depends on the program that failed: NotEnoughTokensToBuy in Pump.fun Bonding Curve, DisabledSell in PumpSwap AMM, PriceSlippageCheck in Raydium AMM V3 (CLMM) and 21 more below.
Programs that use Anchor-style numbering start their own error list at 6000 (0x1770), so 6021 is the error at index 21 of the failing program's list. The same number means something different in every program.
| Program | Error |
|---|---|
| Pump.fun Bonding Curve | NotEnoughTokensToBuy Not enough tokens to buy The name points to a balance check: an account holds less than the instruction needs. |
| PumpSwap AMM | DisabledSell The name points to a feature or pool state that currently blocks this action. |
| Raydium AMM V3 (CLMM) | PriceSlippageCheck Price slippage check The name points to a slippage or minimum-output check: the price moved past the limit set in the transaction. |
| Meteora DLMM | InvalidRewardDuration Invalid reward duration |
| Meteora CP AMM (DAMM V2) | InvalidMinimumLiquidity Invalid minimum liquidity |
| Meteora Dynamic Bonding Curve | InvalidCurve Invalid curve |
| Orca Whirlpools | InvalidTimestampConversion Timestamp should be convertible from i64 to u64 |
| Moonshot | TokenSymbolTooLong Token Symbol too long, max supported length is 10 bytes |
| OKX DEX Aggregation Router V2 | InvalidSwapAuthority Invalid swap authority |
| Boop | NothingToSplit Nothing to split |
| Meteora AMM | InsufficientSnapshot Insufficient virtual price snapshot |
| Drift V2 | ClockUnavailable Clock unavailable |
| Heaven DEX | InvalidProtocolSwapFeeWallet Invalid protocol swap fee wallet |
| Jupiter DCA | WrongAdmin Wrong admin |
| Magic Eden V2 | BuyerATACannotHaveDelegate Buyer ata cannot have a delegate set |
| Metaplex Auction House | BuyerATACannotHaveDelegate Buyer ata cannot have a delegate set |
| Metaplex Bubblegum | CollectionNotFound Collection Not Found on Metadata |
| Metaplex Candy Machine | NetworkExpireFeatureMissing Missing gateway network expire feature when required |
| Metaplex Fixed Price Sale | MarketInInvalidState Market in invalid state |
| Metaplex Hydra | TransferNotSupported Transfer is not supported on this membership model |
| Obric V2 | InvalidRoutesForSwap |
| OpenBook V2 | OraclePegInvalidOracleState Cannot place a peg order due to invalid oracle state |
| Tensor | PoolsAreTheSame new pool should not match old pool |
| TON Whales Holders | NewWithdrawnAOverflow The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client. |
custom program error: 0x1785 · {"Custom":6021} · Custom(6021) · Error Number: 6021
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.
← 0x1784 · 0x1786 → · 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.