Home / Solana errors / 0x1787

custom program error 0x1787

0x1787 is hexadecimal for 6023. 4 programs in our catalogue can raise it, with 4 different meanings between them. Which one you hit is decided by the program ID in the log line — not by the number.

Paste your log and decode it

What 0x1787 means, program by program

ProgramMeaning of 0x1787 there
Jupiter
JUP6…TaV4
Invalid authority
A signing authority in the transaction did not match what the program expected for one of the accounts involved.
Pump.fun
6EF8…wF6P
Not enough tokens to sell
You asked to sell more tokens than the curve can absorb, or more than you hold in the account passed in.
Orca
whir…tyCc
Invalid tick array sequence
The tick arrays were supplied, but not in the order the swap requires. Whirlpools reads them sequentially from the current price toward the trade direction and checks adjacency.
Raydium CLMM
CAMM…rWqK
Not enough tick array accounts
The swap's remaining_accounts carried fewer tick-array accounts than the trade needs to traverse its price path. Concentrated-liquidity swaps must pass the tick arrays covering every step of the route.

The same code in real logs

Every line below is a genuine failure message for 0x1787 — same number, different owner:

The pubkey after Program is what decides the meaning. Match it against the table rather than guessing from the number.

How to tell which program raised yours

  1. Read the program ID. The log line reads Program <pubkey> failed: custom program error: 0x1787. That pubkey is the owner of the error table — match it against the table above.
  2. No pubkey left in the log? The failed instruction still names its owner: token instructions (transfer, transferChecked, mintTo, burn) belong to a token program; swap, deposit and withdraw instructions belong to an AMM; tick arrays mean concentrated liquidity — Orca, Raydium CLMM or Meteora DLMM — and bins mean Meteora DLMM.
  3. Convert before you search. 0x1787 and 6023 are the same code; docs, RPC error objects and blog posts quote it in different bases, and searching the wrong one returns unrelated programs.

Narrow it by what the error is about

If the message you are looking at is about none of these, it came from a program outside this list — check the program ID before assuming it is one of the 4 above.

Other codes with the same collision problem

The full picture — all 58 contested codes at once — is on the cross-program error code index.