FixesUpdated 23 Oct 20261 min read

"Attempt to debit an account but found no record of a prior credit" fix

The fix

The wallet paying the fee has never held SOL on this network, so the runtime cannot find it. It almost always means an empty wallet or the wrong network (devnet versus mainnet).

Tools covered

  1. PhantomSelf-custodial crypto wallet and trading app covering tokens, prediction markets, perps, a desktop Terminal and a Visa card.UpVisit
  2. SolflareSelf-custody Solana wallet for trading, staking and holding, with a Shield hardware wallet.UpVisit

What the error means

Attempt to debit an account but found no record of a prior credit.

The wallet paying the fee has never held SOL on this network, so the runtime cannot find it. It almost always means an empty wallet or the wrong network (devnet versus mainnet).

Where it comes fromSolana runtime (transaction error)
CodeAccountNotFound

How to fix it

  1. Check the fee-paying wallet on a block explorer for the network you are using. If it shows no SOL, send SOL to it.
  2. If you are testing, confirm your wallet and app are both on devnet or both on mainnet. A devnet airdrop does not exist on mainnet.
  3. On devnet, get test SOL from a faucet, see how to get devnet SOL.
  4. Retry the transaction after the SOL arrives.

If that is not it

  • If the wallet has SOL but the error mentions a specific account, the app may be paying fees from a different wallet than the one you funded.

More fixes: how to decode any Solana error code and why Solana transactions fail.

Source

Error text and code from Solana SDK transaction and instruction error definitions (anza-xyz/solana-sdk), read on 24 October 2026.

Questions people ask

Why does a brand-new wallet get this error?

A wallet that has never received SOL does not exist on-chain yet, so it cannot pay the transaction fee.

Does this mean my funds are gone?

No. It means the paying account has no record on that network; check you are looking at the right network and wallet.

"Attempt to debit an account but found no record of a prior