ReferenceCore release 0.1.0
Error codes
Useful Anchor Core v0.1.0 errors and their numeric codes for wallet and integration diagnostics.
Anchor error numbers below follow the Core enum order beginning at 6000. Applications should decode the program error and preserve the original transaction outcome rather than inferring success from a signature.
| Code | Error | Typical interpretation |
|---|---|---|
| 6000 | InvalidFee | Pool fee tier is not one of 100, 200 or 300 bps. |
| 6003 | SlippageExceeded | Output is below the supplied minimum or minimum LP output. |
| 6008 | ReserveTooLowForLpClaims | Swap would leave too little reserve for positive LP claims. |
| 6009 | InvalidPoolAsset | Mint or vault does not belong to the pool. |
| 6010 | InvalidZkProof | Invalid proof encoding, public inputs or pairing check. |
| 6012 | InvalidTokenProgram | Token program is not classic SPL Token. |
| 6014 | InvalidShieldedState | Shielded state is not bound to the requested pool. |
| 6016 | InvalidRoot | Root is not in accepted history for the generation/sequence. |
| 6017 | NullifierSpent | Canonical nullifier account already exists. |
| 6018 | InvalidNullifier | Spent-nullifier address, owner or data is not canonical. |
| 6019 | InvalidEncryptedNote | Shield encrypted payload length/version is invalid. |
| 6020 | InvalidCommitment | Commitment or nullifier field encoding is invalid. |
| 6021 | InvalidRecipient | Recipient/token account relation is invalid. |
| 6023 | InvalidTreeGeneration | Tree address or generation does not match pool state. |
| 6025 | InvalidPrivateSwapAmount | Proof statement output does not match Core CPMM output. |
| 6026 | InvalidPrivateSwapCommitment | Output or change commitment does not match change state. |
| 6027 | Unauthorized | Caller is not the configured authority/recipient. |
| 6032 | TreeRolloverNotReady | At least two leaves remain; rollover is premature. |
| 6033 | TreeNeedsRollover | Active generation lacks capacity for the append. |
| 6034 | InvalidMerkleArchive | Directory or root does not authenticate the archive. |
| 6035 | InvalidMerklePage | Page PDA, header, count or append offset is invalid. |
The Core ZkCpmmError enum and IDL are authoritative if codes change in a later release. For client-level exceptions see SDK errors & outcomes.
Source baseline: frozen Core v0.1.0 / SDK v0.1.1.