Skip to main content

Authorization Errors (20–39)

These errors occur when a signer, authority, or keeper does not meet required permission constraints.


Error Table

CodeNameMessageCauseSolution
20UnauthorizedUnauthorizedUser lacks permission for operationCheck signer is correct account owner
21NotAuthorizedKeeperNot authorized keeperSigner not in authorized keepers listAdd keeper to Config.authorizedKeepers
22UnauthorizedKeeperUnauthorized keeperKeeper not authorized for operationUse authorized keeper account
23InvalidAuthorityInvalid authorityAuthority does not match expectedVerify authority equals Config.owner
24MissingSignatureMissing signatureRequired signer did not signEnsure required accounts sign transaction
25UnauthorizedSignerUnauthorized signerSigner not permitted for operationVerify correct account is signing
26InvalidTokenOwnerInvalid token ownerToken account owner mismatchConfirm token account ownership
27UnauthorizedPoolAccessUnauthorized pool accessUser not permitted to access poolValidate pool access permissions

Characteristics

  • Triggered by signer validation failures
  • Enforced via authority checks and access control logic
  • Not recoverable without correct signer/permissions
  • Usually indicates incorrect account passed or wrong wallet signing