metaspace
Reference / Errors

Reference

Errors

Every error the program returns, and the instruction that raises it.

Eleven errors, in the order the program declares them. Anchor numbers custom errors from 6000, so CommitmentMismatch is 6000 and Overflow is 6010.

Error table

CodeErrorMessageRaised by
6000CommitmentMismatchThe vault's commitment does not match the signature revealed for itfinalize_withdrawal
6001ZeroCommitmentThe next commitment must not be zero: a vault with no lock cannot be withdrawn from againinit_vault, open_withdrawal
6002CommitmentReusedThe next commitment must differ from the one being spentopen_withdrawal
6003ChainOutOfOrderSignature chains must be pushed in order, with no gaps and none repeatedpush_signature
6004SignatureCompleteThis withdrawal request already has every chain it needspush_signature
6005SignatureIncompleteThis withdrawal request is missing signature chainsfinalize_withdrawal
6006StaleNonceThe vault's nonce has moved since this request was openedpush_signature, finalize_withdrawal
6007InsufficientFundsThe vault does not hold enough lamports above its rent-exempt minimumfinalize_withdrawal
6008ZeroAmountA withdrawal of zero would burn a one-time signature for nothingdeposit, open_withdrawal
6009NotExpiredThis withdrawal request has not expired yetcancel_withdrawal
6010OverflowArithmetic overflowedfinalize_withdrawal