Tx Doctor / Solana error library / Invalid account state
Solana error: Invalid account state (0xd)
The account exists but is not in a state the program can act on - for example an uninitialized or already-closed token account.
Why it happens
- The account was closed but the interface still holds a reference to it.
- Two transactions raced: one closed the account while the other was still using it.
- The program expects an initialized mint or account and got an empty one.
How to fix it
- Retry after refreshing balances - the interface will re-create the account.
- Wait for any in-flight transaction to confirm before acting again.
- Re-create the associated token account for that mint.
What it looks like in the logs
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0xd
Seeing this error right now? Paste your transaction signature and get the exact instruction, program and code that failed.
Diagnose my transaction