Tx Doctor / Solana error library / Token account owner mismatch

Token 0x40x4

Solana error: Token account owner mismatch (0x4)

The token account is owned by a different wallet than the one signing, so the program refuses to move the tokens.

Why it happens

How to fix it

  1. Confirm the active wallet in your extension matches the one that owns the tokens.
  2. Reconnect the wallet to the dApp so it re-reads the account list.
  3. If you were using a delegate, ask the owner to re-approve it.

What it looks like in the logs

Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x4

Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.

Diagnose my transaction

Related Solana errors

Token account is frozen

Token 0x11

Account not initialized or not found

AccountNotFound

Account would not be rent exempt

Token 0x0

Not enough token balance

Token 0x1