Tx Doctor / Solana error library / Account not initialized or not found

AccountNotFound

Solana error: Account not initialized or not found (AccountNotFound)

An account the transaction expects does not exist yet on chain, so the program cannot read or write it.

Why it happens

How to fix it

  1. Create the associated token account first - most swap interfaces do this automatically, but a custom script may not.
  2. Re-run the action from the official interface rather than a cached page.
  3. If the account was closed on purpose, re-create it before transferring into it.

What it looks like in the logs

Program log: Error: AccountNotInitialized

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

Invalid account state

Token 0xd

Token account is frozen

Token 0x11

Account would not be rent exempt

Token 0x0

Not enough token balance

Token 0x1