TxWhy

Error codes / Anchor framework

ConstraintHasOne

Anchor framework · Custom(2001) · 0x7d1

custom program error: 0x7d1

What it means

A has_one constraint failed — a referenced account does not match the field stored on the state account.

What to do

Pass the exact account recorded on the state (e.g. the correct authority or owner).

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