Tx Doctor / Solana error library / Token math overflow
Solana error: Token math overflow (0xe)
An arithmetic operation inside the token program overflowed - the amount is larger than the token's supply or decimals can represent.
Why it happens
- The transfer amount exceeds the mint supply or the maximum value for the token's decimals.
- A calculation produced a negative or absurdly large intermediate value.
- A custom program passed an unchecked amount.
How to fix it
- Check the amount and the mint's decimals - a decimal mismatch multiplies the value by powers of ten.
- Send a smaller amount to confirm the route works.
- If you are the program author, use checked arithmetic.
What it looks like in the logs
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0xe
Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.
Diagnose my transaction