Free, no wallet connection, runs in your browser

Decode any Solana error in seconds

Paste custom program error: 0x1771, an Anchor log, or a failed signature. Get the program, the variant name, why it happened and how to fix it.

Try:
How codes are numbered

A custom program error is a u32 returned by the program that ran. The same number means different things in different programs: 0x1 is “insufficient funds” in SPL Token and “not enough SOL” in the System Program.

Anchor’s 6000 offset

Anchor reserves 100–5999 for framework errors and starts each program’s own error enum at 6000 (0x1770). So 0x1771 is the second variant of the program’s #[error_code] enum.

Using @solana/kit?

Production builds throw Solana error #8100002 and tell you to run npx @solana/errors decode. Paste that whole line above: the code and its base64 context are decoded here, no terminal needed. All Kit codes →