Custom program error

0x1218

Appears in logs as custom program error: 0x12

SPL TokenTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA

MintDecimalsMismatch

“The provided decimals value different from the Mint decimals”

A TransferChecked, MintToChecked or BurnChecked instruction was given a decimals value that does not match the mint.

Common causes

  • Hard-coding decimals (for example 9 or 6) instead of reading it from the mint.

How to fix it

  • Fetch the mint with getMint and pass mint.decimals to the checked instruction.

Decode another error

Try: