What the error means
AnchorError caused by account: <name>. Error Code: ConstraintSeeds. Error Number: 2006. Error Message: A seeds constraint was violated.
An account address does not match the address the program derives from its seeds, usually because the app passed the wrong account or derived it for the wrong mint, user or program version.
| Where it comes from | Anchor framework |
| Code | 2006 (0x7d6) |
How to fix it
- Update the app or SDK; programs sometimes change seeds between versions.
- Recompute the program-derived address with the exact seeds and program ID the program uses.
- Check you are using the right pool, mint and wallet for the account in the error.
If that is not it
- If the account is right but owned by another program, the error is 3007 instead.
More fixes: how to decode any Solana error code and why Solana transactions fail.
Source
Error text and code from Anchor framework error codes (coral-xyz/anchor v0.30.1 lang/src/error.rs), read on 24 October 2026.
