Custom program error

0x1521

Appears in logs as custom program error: 0x15

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

ExtensionBaseMismatch

“Extension does not match the base type provided”

The account's base type (mint or account) does not match the extension being initialised or read.

Common causes

  • Passing a token account to an instruction that expects a mint with extensions, or vice versa.

How to fix it

  • Verify the account type before initialising extensions.

Decode another error

Try: