Nitride.xyz
Engineering · November 17, 2026 · 6 min read

A shred is not a confirmation: avoiding false positives

A transaction in a shred has been packed by the leader, not executed or agreed by the cluster. Four ways it fails to land, and how to design for them.

Nitride.xyz team

Seeing a transaction in a shred tells you the leader packed it into the block it is building. It does not tell you the transaction executed successfully, that the block was accepted, or that its effects are final. Bots that treat shreds as confirmations act on false positives. The fix is to act early and settle later.

What seeing a transaction in a shred means#

A shred is a piece of a block on its way across the network, cut and signed by the leader while the block is still being produced. The shreds explainer covers the structure. When your decoder pulls a transaction out of a set of shreds, three things are true: the leader received it, decided to include it, and placed it at a particular point in its block.

Three things are not yet known. Nobody outside the leader has executed it, so you do not know if it succeeded. The cluster has not voted on the block, so you do not know if the block will be kept. And the state it would change has not changed anywhere you can read.

Our list of what a shred feed cannot tell you goes through each missing piece. That gap is the whole reason shreds are valuable. You see intention before outcome, and only preconfirmations come earlier, for the leaders that emit them. It is also the reason they need careful handling.

Four ways it fails to land#

The transaction fails. It is in the block but its instructions error: a slippage limit is hit, an account is already closed, a balance is short. A failed transaction still pays its fee and still sits in the block, so a bot that reacts to every swap it sees in shreds will react to swaps that did nothing.

The block is skipped. The cluster can decide not to keep a leader's block. Under Alpenglow, which went live on mainnet on October 21, 2026 (see what Alpenglow changes), validators vote either to notarize a block or to skip the slot. If a slot is skipped, every transaction your decoder pulled from its shreds is gone, and some of them may reappear in a later block in a different order.

The data is incomplete. Raw UDP drops packets, most often in the bursts described in what a launch frenzy does to a shred feed. If you are missing data shreds and do not have enough coding shreds to rebuild them, part of the block is unreadable. A decoder that guesses at a partial entry can produce transactions that were never there.

Duplicates and conflicts. A faulty or malicious leader can send different versions of a block for the same slot. Duplicate shreds also arrive in normal operation. A decoder needs to notice when two shreds claim the same slot and index with different contents.

Building a bot that copes#

The pattern that works is a fast path and a settling path, with a clear rule for which one is allowed to do what.

The fast path acts on intention. It reads shreds, decodes transactions, and does the things that are cheap to undo or worth the risk: preparing a transaction, adjusting a quote, raising an internal flag. It never books a result.

The settling path confirms. An RPC subscription or a Geyser stream reports what executed, at a commitment level you trust. Anza's documentation notes that under Alpenglow the confirmed and finalized statuses are equivalent, which makes the choice of level simpler than it used to be. When the settling path disagrees with the fast path, it wins.

Keep per slot state. Track which slots you have complete data for, which you acted on, and which have settled. When a slot is skipped, cancel or reverse anything the fast path did on its strength.

Drop what you cannot complete. If a FEC set cannot be recovered, do not guess. A missed opportunity costs less than a confident action on data that was never broadcast.

Size bets to the evidence. A transaction seen in a complete, signature checked set of shreds from the scheduled leader deserves more confidence than one rebuilt from a partial set. Let your fast path scale what it does to how sure it is, and keep the irreversible steps for the settling path.

A concrete case shows the difference. Suppose your bot sees a large swap on a thin pool in shreds and prepares a transaction that trades behind it. If the swap fails on slippage, or its slot is skipped, the opportunity never existed. A bot that sent its own trade at once now holds a position it did not want. A bot that prepared the trade and sent it only when the pool's state moved as expected spends a little speed to avoid that loss. Which trade off is right depends on the strategy, but it should be a decision rather than an accident.

Measure your false positive rate. Log every fast path action alongside the settling path's verdict. The share of actions taken on transactions that failed or never landed tells you whether your filters are tight enough.

Our comparisons of shreds vs Geyser streams and shreds vs RPC WebSockets cover the settling side in more depth, and the UDP wire contract lists what each datagram carries.

Each plan has a free 2-hour trial, once per person. Email support@nitride.xyz with the IPv4 address and UDP port you want to test. We verify you receive on that address, then your 2 hours start.

Sources#

Read nextWhat Alpenglow changes for anyone buying shreds