Tx Doctor / Solana error library / Custom program error (unknown code)

Custom ...

Solana error: Custom program error (unknown code)

A program rejected the transaction with an error code that only its own developers define. The logs around the failure usually reveal the reason.

Why it happens

How to fix it

  1. Read the last few log lines - programs usually print the human reason right before failing.
  2. Retry once with a fresh blockhash and a slightly higher priority fee; transient state causes many of these.
  3. If it repeats on the same action, open a support ticket with the signature - the program team can decode it instantly.

What it looks like in the logs

Program 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P failed: custom program error: 0x1

Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.

Diagnose my transaction

Related Solana errors

Invalid calculation in the route

Custom 6002

Invalid input or output index

Custom 6006

Invalid slippage value

Custom 6004

Malformed or unsupported transaction

SanitizeFailure