Custom program error

0x1f31

Appears in logs as custom program error: 0x1f

Token-2022TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb

MintRequiredForTransfer

“Mint required for this account to transfer tokens, use `transfer_checked` or `transfer_checked_with_fee`”

This mint has an extension (transfer fee or transfer hook) that requires the mint account in the transfer, so plain Transfer is rejected.

Common causes

  • Using Transfer instead of TransferChecked with a Token-2022 mint that has transfer fees or hooks.

How to fix it

  • Switch to transferChecked (or transferCheckedWithFee) and pass the mint and decimals.

Decode another error

Try: