For the complete documentation index, see llms.txt. This page is also available as Markdown.

Shreds

What are Shreds?

On Solana, blocks are never transmitted as a complete unit.

Instead, the leader streams the block as it is being produced, splitting it into small packets called shreds. These are broadcast over UDP to the network and reassembled by validators in real time.

Why it matters

Latency on Solana is not a single event—it splits into two distinct phases:

  1. Transaction → Leader (getting included)

  2. Leader → Network (via shreds) (state becoming observable)

Most systems focus on phase (1).

But for latency-sensitive strategies, phase (2) is where edge is gained or lost. Shreds propagate over a fanout-based UDP network (Turbine), meaning:

  • Packets take different paths

  • Arrival order is not guaranteed

  • Timing varies across peers

As a result:

  • Validators reconstruct blocks at different wall-clock times

  • Earlier reconstruction = earlier access to:

    • account state

    • program outputs

    • orderbook changes

Even a few milliseconds here is material.

Who this is for

Astralane Shred Delivery is designed for:

  • MEV searchers

  • Market makers

  • High-frequency traders

  • Validator operators

  • Infrastructure providers

If your strategy depends on reacting to state changes as early as possible, shred delivery is a must.

How Astralane Shreds work

Astralane provides raw UDP shred streams optimized for:

  • Low-latency propagation

  • Consistent shred arrival

  • Efficient duplicate handling

Shreds are delivered directly over UDP to minimize overhead and avoid additional transport latency.

This allows clients to:

  • Receive shreds earlier in the propagation cycle

  • Reconstruct state faster

  • Reduce dependency on slower or congested peers

Pricing & Tips Setup

Shreds pricing

Instead of hard monthly commitments, we provide a pay-as-you-use model. If you accumulate enough registered tips for the last 24h, you will be automatically eligible to enter one of the shred tiers.

Shreds Tier
Required 24h Tips
Description

tier-1

0.2 SOL

Good for the dev testing, faster than Jito shreds.

tier-2

0.5 SOL

Ideal for the ultra-low-latency shred delivery and production workloads.

info

Tip placement is flexible: if you'd rather not add a tip to your entry transaction, you can attach it to the closing leg instead and register that transaction through ShredPay.

What the tiers mean

Your tier controls how many validator-direct shred sources you receive. A higher tier covers more leaders, which lowers your effective shred latency — you see more of the network's blocks earlier.

  • Tier-1 gives baseline coverage, enough for development and testing;

  • Tier-2 unlocks broader leader coverage for ultra-low-latency production workloads where every millisecond counts.

You can check your current tier and 24h tips at https://portal.astralane.io/shreds

Grace period & downgrades

As soon as you cross a tier's 24h tip threshold, you are upgraded immediately. If your trailing-24h tips drop below your current tier, you are not dropped instantly. You keep the tier for a 24h grace window, then fall back one tier down. Downgrades step down one tier at a time (tier-2 → tier-1), never straight to no-access.

info

The grace period means a single quiet trading day won't cut off your shred feed

How your tips get counted

ShredPay is a separate HTTP service used only for registering tips - not for landing transactions. You send:

  • signed transaction

  • slot that triggered the transaction

Request format:

POST to your endpoint URL, JSON body (array):

Response format:

You can land your transactions anywhere — Iris or any other provider. That part is entirely up to you.

info

Tier counting: a tip only counts once a copy of that transaction is sent to ShredPay over HTTP. Landing it somewhere doesn't register it — not even through Astralane's own services.

No double-paying. You don't pay Astralane twice. If you're already tipping ~0.5 SOL or more via Iris, that stays exactly the same — you just also send a copy of those tipped transactions to the ShredPay endpoint.

How to set up tipping

The best use of such model is integrating tips into your searcher code:

Full working example: builds a tip transaction, lands it via Iris, and registers a copy through the ShredPay HTTP endpoint.

View the example on GitHub.

Tipping Address

  • ASTZHptaMgYVMX6DAocDr1vVXLran5PpfKfQtVTSWkfE

  • AStZiY6EE532nQBBogmvcWemc2bwg2kHuR4Jrd5Cqaq5

  • AStzprSDj14m1pdMuuomjLQwUL5X4d4yEKwiFfzfUSeC

  • ASTzWqJ1irGmrWZAkc1UUfVYbJknsxh7R3Jo4jYZ7Mbd

ShredPay endpoints

Send your POST request to the endpoint closest to your infra:

info

Get your API key from the Astralane portal. Requests without a valid key are rejected.

Get Access to the Shreds

You can connect your shred stream directly through the Astralane portal. If you run into any issues, open a support ticket in Discord, providing your desired region and destination ip:port.

Currently supported regions:

  • FRA (shred relay is on Fra2 Terraswitch and Cherry for co-location)

  • NY (shred relay is on Ewr2 Terraswitch for co-location)

Examples & Code

Libraries Required

Crate
Version
Why

solana-ledger

3.1.12

Provides Shred type, parsing, and new_from_serialized_shred(). Must enable the agave-unstable-api feature since the shred module is gated behind it in v3.

solana-packet

3.x

Provides PACKET_DATA_SIZE (1232 bytes) — the max size of a Solana UDP packet. Use this as your receive buffer size.

solana-clock

3.x

Provides the Slot type alias (u64).

Optional

Crate
Why

solana-entry

Needed if you want to deserialize deshredded data into Entry objects (contains transactions).

bincode

Needed to deserialize the raw deshredded bytes into Vec<Entry>.

solana-streamer

High-performance packet receiver using recvmmsg. Useful if you need multi-threaded reception at scale, but overkill for basic usage.

solana-perf

Provides Deduper (bloom filter) for deduplicating shreds. Only needed at scale.

Cargo.toml

Note on GCC 15+: solana-ledger pulls in RocksDB which fails to compile on GCC 15 due to missing <cstdint> includes. Add this workaround:

Shred Wire Format

Every shred starts with a fixed common header at these byte offsets:

You don't need to parse this manually — Shred::new_from_serialized_shred() does it for you.

Code Structure

1. Bind a UDP socket

Use PACKET_DATA_SIZE (1232 bytes) as your receive buffer — this is the maximum size of any Solana UDP packet.

2. Receive packets in a loop

Each call to recv_from gives you exactly one shred.

3. Parse the shred

This validates the packet and returns a Shred enum (either data or code variant).

4. Read shred fields

Minimal complete example

code : https://github.com/Astralane/Shred_example/tree/main

Latency monitor

Measure and compare end-to-end latency of your shred feed against gRPC endpoints – see who sees each transaction first.

shreds-latency-probe listens to your UDP shred feed and connects to yellowstone-gRPC endpoints simultaneously. For every transaction, it tracks which source arrived first and measures the lag in microseconds.

Output: a live TUI with real-time counters and a zip archive with raw CSVs and summary tables for offline analysis. View source on GitHub.

FAQ

1. What is the difference between Tier 1 and Tier 2

Tiers determine how many validator-direct shred sources you receive: higher tier - more leaders covered - lower effective shred latency. Tier 2 unlocks broader leader coverage than Tier 1.

2. Which regions do you operate in?

We operate out of two regions: Frankfurt at Fra2, Terraswitch DC and New York at Ewr2.

3. Can I receive shreds on two different IPs at the same time?

Yes, this is fully supported.

4. Should I connect to shreds in both Europe and the Americas?

For maximum coverage, yes. If a leader is located in the Americas and you're only connected through our EU ingester, you'll absorb approximately 90ms of additional transit latency. That said, the majority of leaders are EU-based, so most clients get the best results staying on Frankfurt.

5. What is the difference between direct and turbine shreds?

Turbine is Solana's public UDP broadcast tree - shreds hop peer-to-peer, so you sit several hops from the leader. Direct shreds reach you over a shorter path with fewer hops, meaning earlier and more consistent arrival.

6. What are on-demand shreds?

Pay only for what you use - no monthly fee. Your tier is set by your trailing-24h tips. If shred quality is poor and you don't act on it, you don't tip and don't pay for that.

7. How do I pay only for the shreds I actually use?

Add the tip instruction only when an Astralane shred was the signal for a trade — so you pay strictly where it gave you an edge. Coming soon: the tip will attach to the closing leg of your trade, so you pay only at execution.

Last updated