β‘ 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:
| Concern | Without the SDK | With the SDK |
|---|---|---|
| UDP socket + OS buffers | You open, bind, tune rmem_max/maxsockbuf, monitor drops | Handled automatically on listener.start() |
| Shred parsing | You parse the Solana shred binary format yourself | Parsed into typed structures |
| Transaction decoding | You decode Solana transactions from shred payloads | Decoded transactions ready to iterate |
| Slot assembly | You reorder shreds by index within each slot | Assembled per slot transparently |
| Graceful shutdown | You drain sockets and flush buffers cleanly | Handled 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:
npm install shredstreampip install shredstreamcargo add shredstreamgo get github.com/shredstream/shredstream-sdk-goInstall 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
- SDK Quick Start β install and receive your first shred.
- Network Setup β firewall and OS-level tuning.
- Best Practices β monitoring, redundancy, performance.