1 min read

Blockhash not found: Solana transaction fix

What you see
Blockhash not found

Blockhash not found means the transaction used a recent blockhash that the network no longer accepts, usually because it expired or your RPC is behind. Rebuild the transaction with a fresh blockhash and resend.

The exact error

This is a Solana runtime error (BlockhashNotFound): the network rejected the transaction when it was sent. If the transaction was sent but never landed, the client shows "Signature has expired: block height exceeded" instead, see that fix.

What the error means

Each transaction includes a recent blockhash that proves it is fresh. A blockhash is valid only for a limited time, roughly a minute. If the transaction is sent late, or the RPC node reads from a lagging view of the chain, the network cannot find the blockhash.

Common causes

  • A slow, rate-limited or lagging RPC.
  • Waiting too long between building and signing the transaction.
  • Retrying an old signed transaction.

Fix

  1. Fetch a fresh blockhash and rebuild the transaction.
  2. Send it promptly after signing.
  3. Switch to a faster RPC endpoint if it keeps happening.

Background: what a Solana RPC is, and providers on the RPC providers page.

Questions

Can I resend the same signed transaction?

Not once its blockhash has expired. Build and sign a new one.

Does this lose my funds?

No. The transaction simply was not processed.

More error fixes

All 52 →