Error codes / 0x1785
custom program error: 0x1785
Custom(6021) · 0x1785 · used by 24 programs we know
This number has no meaning on its own. Each Solana program numbers its own errors, so 0x1785 is DisabledSell in PumpSwap AMM but NotEnoughTokensToBuy in Pump.fun Bonding Curve. The meaning that applies is the one from the program that actually failed: the first Program … failed line in the transaction's logs. That is often not the program you called, but one it invoked, or a guard instruction your wallet added.
Don't guess: paste the transaction
TxWhy reads the logs, finds the program and the exact instruction that raised 0x1785, explains it, and rebuilds the transaction when the cause is one it can fix.
What 0x1785 means, by program
- DisabledSellPumpSwap AMM
The program raised this named error and published no further explanation.
- NotEnoughTokensToBuyPump.fun Bonding Curve
The account does not hold enough of the token or SOL this instruction tried to spend.
- InvalidTimestampConversionOrca Whirlpools
Timestamp should be convertible from i64 to u64
- InvalidRewardDurationMeteora DLMM
Invalid reward duration
- NothingToSplitBoop
Nothing to split
- ClockUnavailableDrift V2
Clock unavailable
- InvalidProtocolSwapFeeWalletHeaven DEX
Invalid protocol swap fee wallet
- WrongAdminJupiter DCA
Wrong admin
- BuyerATACannotHaveDelegateMagic Eden V2
Buyer ata cannot have a delegate set
- BuyerATACannotHaveDelegateMetaplex Auction House
Buyer ata cannot have a delegate set
- CollectionNotFoundMetaplex Bubblegum
Collection Not Found on Metadata
- NetworkExpireFeatureMissingMetaplex Candy Machine
Missing gateway network expire feature when required
- MarketInInvalidStateMetaplex Fixed Price Sale
Market in invalid state
- TransferNotSupportedMetaplex Hydra
Transfer is not supported on this membership model
- InsufficientSnapshotMeteora AMM
The account does not hold enough of the token or SOL this instruction tried to spend.
- InvalidMinimumLiquidityMeteora CP AMM (DAMM V2)
Invalid minimum liquidity
- InvalidCurveMeteora Dynamic Bonding Curve
Invalid curve
- TokenSymbolTooLongMoonshot
Token Symbol too long, max supported length is 10 bytes
- InvalidRoutesForSwapObric V2
The program raised this named error and published no further explanation.
- InvalidSwapAuthorityOKX DEX Aggregation Router V2
Invalid swap authority
- OraclePegInvalidOracleStateOpenBook V2
Cannot place a peg order due to invalid oracle state
- PriceSlippageCheckRaydium AMM V3 (CLMM)
The swap would have paid out less than the minimum this transaction allowed. The price moved between the moment the quote was taken and the moment the transaction executed, by more than the slippage tolerance set in the swap.
- PoolsAreTheSameTensor
new pool should not match old pool
- NewWithdrawnAOverflowTON Whales Holders
An arithmetic operation inside the program went out of range. In exchanges this usually means the amount, price or liquidity at that moment produced a number the pool cannot represent, often a trade far larger than the pool can absorb.