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.
What 0x1787 means, program by program
| Program | Meaning of 0x1787 there |
|---|---|
JupiterJUP6…TaV4 |
Invalid authority A signing authority in the transaction did not match what the program expected for one of the accounts involved. |
Pump.fun6EF8…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. |
Orcawhir…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 CLMMCAMM…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:
- Jupiter — Invalid authority
Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 failed: custom program error: 0x1787 - Pump.fun — Not enough tokens to sell
Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P failed: custom program error: 0x1787 - Orca — Invalid tick array sequence
Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc failed: custom program error: 0x1787 - Raydium CLMM — Not enough tick array accounts
Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK failed: custom program error: 0x1787
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
- 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. - 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.
- 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
- tick or bin arrays (concentrated liquidity) → Orca, Raydium CLMM
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
- custom program error 0x1773 — 8 programs
- custom program error 0x1774 — 7 programs
- custom program error 0x1775 — 5 programs
- custom program error 0x1776 — 5 programs
- custom program error 0x1783 — 4 programs
- custom program error 0x1782 — 4 programs
- custom program error 0x1781 — 4 programs
- custom program error 0x177f — 5 programs
The full picture — all 58 contested codes at once — is on the cross-program error code index.