Error codes / Anchor framework
ConstraintOwner
Anchor framework · Custom(2004) · 0x7d4
custom program error: 0x7d4
What it means
An account's owner does not match the constraint.
What to do
Pass an account owned by the expected program (watch for 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).