Error codes / 0x1797
custom program error: 0x1797
Custom(6039) · 0x1797 · used by 18 programs we know
This number has no meaning on its own. Each Solana program numbers its own errors, so 0x1797 is BuyNotEnoughQuoteTokensToCoverFees in PumpSwap AMM but InvalidIncentiveMint 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 0x1797, explains it, and rebuilds the transaction when the cause is one it can fix.
What 0x1797 means, by program
- BuyNotEnoughQuoteTokensToCoverFeesPumpSwap AMM
buy: Not enough quote tokens to cover for fees.
- InvalidIncentiveMintPump.fun Bonding Curve
The program raised this named error and published no further explanation.
- AmountCalcOverflowOrca Whirlpools
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.
- InsufficientOutAmountMeteora DLMM
Insufficient amount in for minimum out
- CantDeleteUserWithCollateralDrift V2
Can not delete user that still has collateral
- CannotUpdateLockedTaxationHeaven DEX
Cannot update locked taxation
- MissedInstructionJupiter DCA
Did not call initiate_flash_fill
- InvalidTokenProgramMagic Eden V2
Invalid token program
- NotEnoughTokensAvailableForPurchaseMetaplex Auction House
Amount of tokens available for purchase is less than the partial order amount.
- CreatorDidNotUnverifyMetaplex Bubblegum
Creator did not unverify the metadata
- InvalidThawNftMetaplex Candy Machine
Cannot thaw NFT unless all NFTs are minted or Candy Machine authority enables thawing
- WrongOwnerInTokenGatingAccMetaplex Fixed Price Sale
Wrong owner in token gating account
- NonDepletedPoolMeteora AMM
Pool is not depleted
- PositionIsNotEmptyMeteora CP AMM (DAMM V2)
Position is not empty
- InvalidMigratorFeePercentageMeteora Dynamic Bonding Curve
Invalid migrator fee percentage
- InvalidSaAuthorityOKX DEX Aggregation Router V2
Invalid sa authority
- InvalidPostAmountOpenBook V2
Amount to post above book limits
- NotSupportMintRaydium AMM V3 (CLMM)
Not support token_2022 mint extension