⚑ Why Use the SDK

Our SDK is the fastest path to receiving ShredStream.com shreds β€” in a few lines of code, in any language. This page explains what the SDK does for you and why it's the quickest way to get started.

TL;DR β€” ShredStream.com delivers raw Solana shreds over UDP. Any compatible receiver works. The SDK is a convenience layer that gets you to your first decoded transaction in minutes.


🧩 What the SDK Handles for You

Our SDK is a thin layer between the wire and your application. It takes care of the plumbing so you don't have to:

ConcernWithout the SDKWith the SDK
UDP socket + OS buffersYou open, bind, tune rmem_max/maxsockbuf, monitor dropsHandled automatically on listener.start()
Shred parsingYou parse the Solana shred binary format yourselfParsed into typed structures
Transaction decodingYou decode Solana transactions from shred payloadsDecoded transactions ready to iterate
Slot assemblyYou reorder shreds by index within each slotAssembled per slot transparently
Graceful shutdownYou drain sockets and flush buffers cleanlyHandled in the listener lifecycle

🌐 Every Major Language

The SDK ships for the four languages most used by Solana traders, bots, MEV searchers, and DeFi developers β€” with the same API across all of them:

JavaScript / TypeScriptnpm install shredstream
Pythonpip install shredstream
Rustcargo add shredstream
Go
Gogo get github.com/shredstream/shredstream-sdk-go

Install one package, bind to your assigned port, iterate transactions. Same 5-to-6 lines of code in every language.


πŸ› οΈ Can I Build My Own Receiver?

Yes. We deliver raw Solana shreds over UDP, so any Solana shred receiver works β€” point yours at the IP/port you configure in the dashboard.

If you go that route:

  • Review Network Setup to tune your socket buffers.
  • Plan for your own slot assembly and transaction decoding.

The SDK exists so you don't have to spend engineering time on plumbing β€” but if you already maintain a shred receiver, it'll work just fine.


🎯 When to Use the SDK

Use the SDK if you:

  • Want to be streaming transactions in under 5 minutes.
  • Build bots, HFT, MEV, Snipers, DeFi, or analytics β€” and want decoded transactions out of the box.
  • Don't already maintain a Solana shred receiver.

Skip the SDK if you:

  • Already have a Solana shred receiver in production.
  • Want to keep your stack minimal and self-contained.

In both cases, the wire is the same β€” choose what fits your setup.


➑️ Next Steps

Why Use the SDK β€” Documentations | ShredStream.com