Custom program error

0x2e46

Appears in logs as custom program error: 0x2e

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

CpiGuardSetAuthorityBlocked

“CPI Guard is enabled, and a program attempted to add or replace an authority via CPI”

Authorities cannot be changed via CPI on a CPI-Guarded account.

Common causes

  • A program calling SetAuthority on the user's account through CPI.

How to fix it

  • The user must change authorities in a top-level instruction.

Decode another error

Try: