What the error means
Error processing Instruction N: custom program error: 0x4
The token account is owned by a different wallet than the one signing. You are trying to move tokens from an account you do not control, or the app picked the wrong account.
| Where it comes from | SPL Token program |
| Code | 4 (0x4) OwnerMismatch |
How to fix it
- Confirm the connected wallet is the one that holds the tokens.
- If tokens sit in a non-associated account, select that account explicitly or move them to your associated token account.
- In multisig or delegated setups, sign with the owner or approved delegate.
If that is not it
- If the error is 0x3, the account belongs to a different mint, not a different owner.
More fixes: how to decode any Solana error code and why Solana transactions fail.
Source
Error text and code from SPL Token program error definitions (solana-program/token), read on 24 October 2026.
