TxWhy

Error codes / Anchor framework

InvalidProgramId

Anchor framework · Custom(3008) · 0xbc0

custom program error: 0xbc0

What it means

A program account has an unexpected ID.

What to do

Pass the exact program the instruction expects (e.g. the right token program).

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).