Custom program error

0x10064102

Appears in logs as custom program error: 0x1006

Anchor

InvalidNumericConversion

“The program could not perform the numeric conversion, out of range integral type conversion attempted”

A numeric conversion in the program overflowed (for example u64 → u32).

Common causes

  • Values larger than the target type during try_into() / try_from().

How to fix it

  • Check amounts and use wider types or checked math.

Decode another error

Try: