Errors

Every refusal the program can return.

CodeNameMessageRaised by
6000ZeroAmountAmount must be greater than zerodeposit, withdraw, spend, earn
6001NameTooLongWallet name is longer than 24 bytesadd_agent
6002UnknownCategoryUnknown spend categoryspend
6003FrozenThis wallet is frozenspend
6004CategoryNotAllowedThis wallet may not pay for that categoryspend
6005OverPerTxLimitAmount is over the wallet's per-payment limitspend
6006OverDailyLimitAmount would take the wallet over its daily limitspend
6007InsufficientBalanceThe shared balance does not cover this amountwithdraw, spend
6008NothingToSealNo entries since the last sealseal
6009OverflowArithmetic overflowspend

Account checks that fail before the instruction runs (a wallet that belongs to another book, a signer that isn't the owner) return Anchor's own constraint errors, not these.

NextTerms