Solana confirmation and blockhash expiry: what a missing status means
By MassLauncher · Updated · 3 min read
A missing signature status tells you what one RPC node found. To decide whether the original transaction could still land, you also need the validity height of the blockhash it used.
Save the height that belongs to the signed message
For a recent-blockhash transaction, keep the signature and the blockhash and lastValidBlockHeight returned together by getLatestBlockhash. A later call gives a new pair; its height cannot date the original message. Poll getSignatureStatuses for the signature and compare getBlockHeight at a consistent commitment with the original last valid height. A slot number is not a block height.
Read commitment and execution separately
| Observation | What to do |
|---|---|
| Status is null; height at or below last valid height | The node has no status yet. Keep checking the same signature. |
| Processed; err is null | This node saw execution. Wait for the commitment you require. |
| Confirmed; err is null | The transaction has a supermajority vote. Wait for finalized if your workflow requires it. |
| Finalized; err is null | Record success at finalized commitment; verify any specific account effect separately. |
| A status has a non-null err | Read the execution error and its commitment. Do not count this observation as a success. |
| Status is null; height above last valid height | The old hash has expired for new inclusion. Search history and reconcile the intended effect before signing again. |
A worked expiry boundary
Suppose lastValidBlockHeight is 450000. At height 450000 the expiry test is still false; at 450001 it is true. A signature can turn up in history after that point because the transaction landed earlier. Ask getSignatureStatuses with searchTransactionHistory: true and use a node with coverage for the relevant period. A missing result on a node with incomplete history leaves the outcome unknown.
Signing a fresh blockhash produces a different transaction that could repeat the original action. Check the expected account change and any existing receipt before doing so. Durable nonce transactions use a different validity rule; this height test does not apply to them.