TxWhy

Error codes / Orca Whirlpools

InvalidTickArraySequence

Orca Whirlpools · Custom(6023) · 0x1787

custom program error: 0x1787

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 tick array sequence provided for instruction.”

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 6023 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.