Custom program error

0x2d45

Appears in logs as custom program error: 0x2d

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

CpiGuardApproveBlocked

“CPI Guard is enabled, and a program attempted to approve a delegate via CPI”

Delegates cannot be approved via CPI on a CPI-Guarded account.

Common causes

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

How to fix it

  • The user must approve the delegate in a top-level instruction.

Decode another error

Try: