Solana the transaction lifetime: from RPC to confirmation
A transaction on Solana does not appear on a screen and stay there. It is
submitted, forwarded, landed, confirmed, and finalized - and every one of
those steps can fail, lag, or expire. Knowing the lifetime is how you tell a
stuck transaction from a dead one.
Submission and the blockhash clock
Every transaction carries a recent blockhash, and the network only accepts
transactions referencing a blockhash from a limited recent window - roughly a
minute or so of recent history. That is the first failure mode: sign a
transaction, let it sit, and it expires unlanded. Wallets and bots rebroadcast
within the window; anything that waits longer than the window is dead on
arrival.
The second failure mode is landing. A transaction enters the leader's schedule
for a slot. If the leader skips that slot - leaders do skip - the transaction
waits for the next leader. Nothing is wrong; it is just queuing.
Confirmation levels
- Processed: a node has seen it in a recent slot. Fast, weak.
- Confirmed: enough of the stake has voted for the block containing it. This
is the level most apps should treat as done.
- Finalized: the block is locked in by the supermajority rule and cannot be
rolled back in practice. Slower, and only large payments really need to
wait for it.
Most UX bugs come from reading the wrong level. Showing success at processed
means showing success for transactions that can still fall out of a skipped
slot.
Why transactions get stuck
- Fee too low for congested slots. Under congestion, leaders prefer paid
transactions; the unpaid ones queue behind.
- Bad blockhash handling. Clients that fetch a blockhash once and reuse it
across retries produce transactions that expire mid-loop.
- Account conflicts. A transaction that writes an account another in-flight
transaction also writes will collide until one loses.
The takeaway
Build your confirmation logic around levels, not vibes: treat confirmed as
done for normal traffic, finalize only where rollback actually hurts,
rebroadcast inside the blockhash window, and surface the difference to users
instead of hiding it. A transaction pipeline that understands the lifetime
fails loudly; one that does not, fails quietly.