All Docs

Shred Format

Solana shreds are the fundamental units of block data propagation. Understanding their format helps you build efficient parsers and processors.

Overview

Each UDP packet you receive contains a single shred. Shreds are binary-encoded with a maximum size of 1,228 bytes (payload) plus headers.

Shred Types

  • Data Shreds — Contain actual transaction data fragments
  • Coding Shreds — Reed-Solomon erasure coding for recovery

Header Layout

OffsetSizeFieldDescription
064 bytesSignatureEd25519 signature of the shred
641 byteShred VariantType indicator (data or coding)
658 bytesSlotThe slot this shred belongs to
734 bytesIndexIndex within the slot
77+VariablePayloadShred data payload
ShredStream.com — Fastest Solana Shred Streaming