TxWhy

Error codes / Anchor framework

AccountOwnedByWrongProgram

Anchor framework · Custom(3007) · 0xbbf

custom program error: 0xbbf

What it means

The account is owned by a different program than expected.

What to do

Pass an account created or owned by the expected program — commonly the wrong token program (Token vs Token-2022).

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