Tx Doctor / Solana error library / Account not initialized or not found
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
- The associated token account for that mint was never created for this wallet.
- The account was closed in an earlier transaction - for example by a rent-reclaim action.
- A program-derived address is derived from inputs that do not match what the program expects.
How to fix it
- Create the associated token account first - most swap interfaces do this automatically, but a custom script may not.
- Re-run the action from the official interface rather than a cached page.
- 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