keepcalculator

06 Numbers and Powers

Solana Transaction Pending or Failing: How to Fix

Card No. 06·62385 · Updated · Standard formula, shown below

If your Solana transaction is stuck as pending or fails outright, the cause is usually one of three things: network congestion, an incorrect nonce or fee, or a wallet/interface issue. This article explains why these problems happen and gives you step-by-step fixes you can try right now.

How Solana Transactions Work

Solana is a high-speed blockchain that processes thousands of transactions per second. Unlike Ethereum, which uses a mempool where transactions wait, Solana uses a scheduler that processes transactions in batches called “blocks” every 400 milliseconds. When you send a transaction, your wallet signs it and submits it to the network. Validators then execute it if it meets all requirements.

Each transaction includes a fee (in lamports, the smallest SOL unit), a recent blockhash (to prove it’s fresh), and an instruction set. If any of these are missing or incorrect, the network rejects it. Pending transactions are usually those that haven’t been included in a block yet, often because the network is busy or the fee is too low.

Why Transactions Get Stuck or Fail

The most common reasons for a pending or failed Solana transaction are:

  • Network congestion – During high traffic (e.g., NFT mints or token launches), blocks fill up quickly, and transactions with lower fees may wait longer.
  • Insufficient fee – Solana fees are dynamic; if you set a fee lower than the current minimum, validators may ignore your transaction.
  • Stale blockhash – A blockhash is only valid for about 150 blocks (roughly 60 seconds). If your transaction isn’t processed in time, it becomes invalid and fails.
  • Nonce mismatch – Each account has a nonce (transaction count). If your wallet sends two transactions with the same nonce, only one will succeed.
  • Insufficient SOL for fees – You need a small amount of SOL (e.g., 0.000005 SOL) to pay the fee. If your balance is exactly zero, the transaction fails.
  • Token account issues – For token transfers, you need an associated token account with enough balance and the correct mint authority.
  • Wallet/interface bugs – Sometimes the wallet displays a pending state even after the network confirms, or it fails to broadcast correctly.

How to Check the Status of a Transaction

Before troubleshooting, find your transaction signature (a long base58 string) in your wallet’s activity history. Then go to a Solana explorer like Solscan or Solana Explorer and paste the signature. This shows:

  • Status – Success, Failure, or Pending.
  • Block height – Which block it landed in (if any).
  • Error message – A specific code like “Blockhash not found” or “Transaction simulation failed.”

If the status is “Pending” but the block height is far behind the current height, it’s likely stuck and you should resubmit.

Step-by-Step Troubleshooting

Follow these steps in order, testing after each one:

  1. Wait a few minutes – Sometimes congestion clears, and the transaction gets included.
  2. Refresh your wallet – Close and reopen the wallet app or browser extension. This forces it to resync with the network.
  3. Check your SOL balance – Ensure you have at least 0.01 SOL to cover fees and rent (if creating new accounts).
  4. Increase the fee – In advanced wallet settings (e.g., Phantom, Solflare), you can set a custom priority fee. Try 0.00001 SOL or higher.
  5. Cancel or replace the transaction – Most wallets allow you to cancel a pending transaction. If not, send a new transaction with a higher fee to the same address (this may replace the old one).
  6. Clear the transaction cache – In some wallets, you can “Clear Activity” or “Reset” the transaction history, then try again.
  7. Use a different RPC endpoint – If your wallet uses a default RPC that’s slow, switch to a public RPC like https://api.mainnet-beta.solana.com (in wallet settings).
  8. Reinstall the wallet – As a last resort, back up your seed phrase, uninstall, and reinstall the wallet app.

Common Error Messages and Fixes

When a transaction fails, the explorer shows an error. Here are the most common ones:

  • “Blockhash not found” – The transaction took too long. Resubmit with a fresh blockhash (usually automatic).
  • “Transaction simulation failed” – The transaction would have failed (e.g., insufficient balance, invalid instruction). Check your inputs.
  • “Attempt to debit an account but found no record of a prior credit” – You’re trying to spend tokens you don’t have. Check your balance.
  • “Transaction precompile verification failed” – This is rare; often a wallet bug. Update your wallet or try a different one.
  • “Invalid account data” – The token account doesn’t exist or is frozen. Create the account first.

Preventing Future Issues

To reduce the chance of pending or failed transactions:

  • Always keep a small SOL buffer – At least 0.05 SOL to cover fees and unexpected rent.
  • Use wallets with fee customization – During congestion, set a higher priority fee.
  • Avoid peak times – If possible, transact when network activity is lower (e.g., not during major mints).
  • Keep your wallet updated – Outdated wallets may have bugs that cause transaction issues.
  • Double-check addresses – Sending to the wrong address is irreversible and not a network issue.

Frequently Asked Questions

Why is my Solana transaction pending for hours?

If it’s been hours, the transaction is likely stuck due to a stale blockhash or a wallet issue. The network won’t process it after ~60 seconds, so you should cancel it and resubmit. Check the explorer to confirm it’s not actually confirmed.

Can I cancel a pending Solana transaction?

Yes, most wallets (like Phantom) allow you to cancel a pending transaction. If not, you can send a new transaction with a higher fee to the same address, which may replace the old one. If that fails, wait for the blockhash to expire and the transaction will be dropped.

Why does my transaction fail even with a high fee?

A high fee doesn’t guarantee success. The transaction may have an invalid instruction, insufficient balance, or a nonce mismatch. Check the error message on the explorer for the specific reason.

How much SOL do I need for fees?

The base fee is 5,000 lamports (0.000005 SOL), but with priority fees it can be higher. Always keep at least 0.01 SOL to be safe. Creating new token accounts also requires rent, which is about 0.002 SOL (refundable when the account is closed).

Is it safe to resubmit a transaction?

Yes, but only if the original is not confirmed. If you resubmit the same transaction, it may double-spend if the first one was actually confirmed. Check the explorer first. If it shows “Success,” don’t resubmit.

Why does my wallet show pending but the explorer says success?

This is a wallet sync issue. The wallet hasn’t updated its UI. Refresh the wallet or restart the app. Your funds are safe; the transaction is confirmed.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →