Nitride.xyz
Learn · Updated November 17, 2026

Solana shreds, explained

Nitride.xyz team

A Solana shred is a fragment of a block small enough to travel in a single UDP packet. The slot leader cuts the block into shreds while it is still producing it and sends them across the network straight away. Data shreds carry pieces of the block's entries. Coding shreds carry parity that lets receivers rebuild lost data shreds.

Why does Solana split blocks into shreds?#

Each slot has one validator, the leader, scheduled to produce its block. Slots are short, with a 200-millisecond target on mainnet since October 2026, and a block can hold thousands of transactions. Waiting until the block is finished and then sending it as one large message would leave every other validator idle for most of the slot and push a burst of data through the network at the end.

So the leader streams the block as it goes. Transactions are batched into entries, the entries are serialised, and the resulting bytes are cut into pieces that each fit in one datagram. Those pieces are shreds. They leave the leader during the slot, which is why shreds are the earliest form in which anyone outside the leader can observe a block.

What is inside a shred?#

Every shred starts with a common header that tells a receiver where the shred belongs without looking at anything else:

FieldWhat it says
SignatureThe leader's signature. In the Merkle format in use today it signs the root of the shred's erasure batch, not the single shred.
VariantData or coding, plus details of the Merkle proof the shred carries
SlotThe slot the shred belongs to
IndexThe shred's position within the slot, counting from zero
VersionThe cluster's shred version, derived from the genesis hash and hard forks
FEC set indexThe index of the first data shred of the shred's erasure batch

After the common header comes a header specific to the shred type, then the payload. A whole shred fits in a UDP datagram of at most 1,228 bytes, below the 1,500-byte MTU of a typical internet path, so it is not fragmented on the way.

Data shreds and coding shreds#

A data shred carries a slice of the serialised entries, in order. Its own header records how far back the parent slot is, flags that mark the end of a batch of entries or the last shred of the slot, and how many bytes of the payload are real data.

A coding shred carries erasure-coding parity computed over a group of data shreds; data shreds and coding shreds compares the two in detail. The group is called an erasure batch or FEC set. In the current format a batch holds 32 data shreds and 32 coding shreds, and any 32 of those 64 are enough to rebuild the missing data shreds. A receiver that loses some packets can therefore often recover the block without asking anyone to resend.

How do shreds travel?#

The leader cannot send every shred to every validator itself. Solana uses Turbine, a tree of validators built afresh for every shred from a seed derived from the leader, slot, shred index and shred type. The leader sends each shred to a root node, the root forwards it to the first layer of the tree, and each node in a layer retransmits to a bounded number of nodes in the next. The tree is biased towards stake, so heavily staked validators tend to sit nearer the top.

Every hop adds delay, which is why where you receive shreds from matters. Why shreds arrive before anything else explains the ordering in more detail.

Validators that miss shreds even after erasure recovery can ask peers for specific shreds through the repair protocol. Repair is a fallback; most shreds arrive through Turbine.

From shreds back to transactions#

A receiver turns shreds back into transactions in a few steps:

  1. Group shreds by slot and erasure batch.
  2. Recover missing data shreds from the coding shreds where possible.
  3. Put the data shreds in index order and join their payloads.
  4. Deserialise the bytes into entries, and read the transactions inside each entry.

A validator then replays the transactions to compute the new state and votes on the block. Everything up to step 4 can happen before the block is complete, which is what makes shreds useful to anyone who wants to see transactions early.

How can you receive shreds yourself?#

There are two common routes. You can run a validator or non-voting node, which receives shreds through Turbine at whatever position the tree gives it. Or you can take a shred feed: a service that forwards raw shreds to an IP address and UDP port you choose, which you then decode with your own receiver. What ShredStream is covers that model and where the name comes from, and the concepts page in our docs shows what a raw feed looks like on the wire.

Questions#

Is a shred the same as a block?#

No. A block is the full output of one slot. Shreds are the fragments the leader sends while producing it, and many shreds make up one block.

How big is a shred?#

Each shred fits in one UDP datagram. The largest are 1,228 bytes on the wire, and the exact size depends on the shred variant.

Are transactions in shreds confirmed?#

No. Shreds carry transactions before execution and voting, so they show what the leader included, not whether it succeeded.

Sources#