Home / Solana errors / 0x1781
custom program error 0x1781
0x1781 is hexadecimal for 6017. 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 0x1781 means, program by program
| Program | Meaning of 0x1781 there |
|---|---|
JupiterJUP6…TaV4 |
Exact-out amount not matched An exact-out swap did not receive the required output amount. Jupiter's docs describe it as similar to slippage: the market moved and the fixed target could not be met. |
Orcawhir…tyCc |
Exceeded token max An exact-output swap needed more input than the maximum you allowed. The mirror image of 6018: here you fixed the amount you want out, so the variable is what you pay in. |
Raydium CLMMCAMM…rWqK |
Price slippage check The swap's execution price crossed beyond the caller's slippage guard before the fill completed. Raydium CLMM's generic slippage rejection on the price itself. |
Raydium LaunchLabLanM…J3uj |
Token-2022 extension not supported The token uses a Token-2022 extension LaunchLab pools don't accept. LaunchLab supports only a specific extension set (transfer fee among them); others block pool creation and trading. |
The same code in real logs
Every line below is a genuine failure message for 0x1781 — same number, different owner:
- Jupiter — Exact-out amount not matched
Program JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4 failed: custom program error: 0x1781 - Orca — Exceeded token max
Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc failed: custom program error: 0x1781 - Raydium CLMM — Price slippage check
Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK failed: custom program error: 0x1781 - Raydium LaunchLab — Token-2022 extension not supported
Program LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj failed: custom program error: 0x1781
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: 0x1781. 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; a bonding-curve account means pump.fun or Raydium LaunchLab.
- Convert before you search. 0x1781 and 6017 are the same code; docs, RPC error objects and blog posts quote it in different bases, and searching the wrong one returns unrelated programs.
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 0x1782 — 4 programs
- custom program error 0x177f — 5 programs
- custom program error 0x1783 — 4 programs
- custom program error 0x177c — 5 programs
The full picture — all 58 contested codes at once — is on the cross-program error code index.