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.

CodeErrorTypical interpretation
6000InvalidFeePool fee tier is not one of 100, 200 or 300 bps.
6003SlippageExceededOutput is below the supplied minimum or minimum LP output.
6008ReserveTooLowForLpClaimsSwap would leave too little reserve for positive LP claims.
6009InvalidPoolAssetMint or vault does not belong to the pool.
6010InvalidZkProofInvalid proof encoding, public inputs or pairing check.
6012InvalidTokenProgramToken program is not classic SPL Token.
6014InvalidShieldedStateShielded state is not bound to the requested pool.
6016InvalidRootRoot is not in accepted history for the generation/sequence.
6017NullifierSpentCanonical nullifier account already exists.
6018InvalidNullifierSpent-nullifier address, owner or data is not canonical.
6019InvalidEncryptedNoteShield encrypted payload length/version is invalid.
6020InvalidCommitmentCommitment or nullifier field encoding is invalid.
6021InvalidRecipientRecipient/token account relation is invalid.
6023InvalidTreeGenerationTree address or generation does not match pool state.
6025InvalidPrivateSwapAmountProof statement output does not match Core CPMM output.
6026InvalidPrivateSwapCommitmentOutput or change commitment does not match change state.
6027UnauthorizedCaller is not the configured authority/recipient.
6032TreeRolloverNotReadyAt least two leaves remain; rollover is premature.
6033TreeNeedsRolloverActive generation lacks capacity for the append.
6034InvalidMerkleArchiveDirectory or root does not authenticate the archive.
6035InvalidMerklePagePage 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.

PreviousEventsNext Constants & domains
Source baseline: frozen Core v0.1.0 / SDK v0.1.1.