Custom program error

0x2f47

Appears in logs as custom program error: 0x2f

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

CpiGuardOwnerChangeBlocked

“Account ownership cannot be changed while CPI Guard is enabled”

The owner of a CPI-Guarded token account cannot be changed.

Common causes

  • SetAuthority(AccountOwner) on a guarded account.

How to fix it

  • Disable CPI Guard first (top-level instruction), then change the owner.

Decode another error

Try: