TxWhy

Error codes / Anchor framework

ConstraintClose

Anchor framework · Custom(2011) · 0x7db

custom program error: 0x7db

What it means

Close-target constraint failed.

What to do

The account being closed must not be the same as the destination for its lamports.

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