TickArraySequenceInvalidIndex
Orca Whirlpools · Custom(6038) · 0x1796
custom program error: 0x1796
What it means
The tick arrays passed with this Orca swap do not cover the price the pool is at now: the route was built for a price range the pool has since left. A swap cannot be re-pointed at other accounts after the fact.
The program's own message: “Invalid index for tick array sequence”
What to do
Get a fresh quote so the SDK picks the tick arrays for the current price. Retrying this transaction cannot succeed.
Have the transaction that failed with this?
Paste its signature. TxWhy shows the exact instruction and inner call that raised the error, and rebuilds the transaction when the cause is one it can fix (compute limit, expired blockhash, priority fee, a stale swap quote or a moved limit).
Code 6038 means something else in other programs
Custom codes are private to each program. Check which program actually raised it: it is the innermost failed call, not necessarily the program you called.
- MaxDepositDrift V2
- InvalidConfigVersionHeaven DEX
- InsufficientWsolForTransferJupiter DCA
- InvalidTrustedProgramOrPDAMagic Eden V2
- MissingElementForPartialOrderMetaplex Auction House
- PrimarySaleCanOnlyBeFlippedToTrueMetaplex Bubblegum
- NoChangingTokenWithFreezeMetaplex Candy Machine
- WrongGatingMetadataAccountMetaplex Fixed Price Sale
- InvalidFeeOwnerMeteora AMM
- FeeInverseIsIncorrectMeteora CP AMM (DAMM V2)
- BinIdOutOfBoundMeteora DLMM
- InvalidAccountMeteora Dynamic Bonding Curve