Custom program error

0x2a42

Appears in logs as custom program error: 0x2a

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

CpiGuardTransferBlocked

“CPI Guard is enabled, and a program attempted to transfer user funds via CPI without using a delegate”

A program tried to transfer tokens out of a CPI-Guarded account using the owner's signature instead of an approved delegate.

Common causes

  • A DeFi program using the owner as authority for a CPI transfer from a guarded account.

How to fix it

  • CPI Guard is enabled on this token account to protect the user. The program must either use a delegate approved by the user, or the user must disable CPI Guard with DisableCpiGuard in a top-level instruction (not via CPI).

Decode another error

Try: