Error codes / Anchor framework
AccountDiscriminatorMismatch
Anchor framework · Custom(3002) · 0xbba
custom program error: 0xbba
What it means
The account holds a different Anchor account type than expected.
What to do
You passed the wrong account (right program, wrong type). Check derivations.
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).