TxWhy

Error codes / Anchor framework

DeclaredProgramIdMismatch

Anchor framework · Custom(4100) · 0x1004

custom program error: 0x1004

What it means

The program's declare_id does not match its deployed address.

What to do

Program-side: fix declare_id! and redeploy. Client-side: you may be calling a fork at the wrong address.

Have the transaction that failed with this?

Paste its signature. TxWhy shows the exact instruction and inner call that raised the error, and rebuilds the transaction when the cause is one it can fix (compute limit, expired blockhash, priority fee, stale swap quote).