Solana shred receiver implementations
Start with a runnable UDP intake probe, then add protocol verification, drop telemetry, and bounded processing for production. Every example uses the published source IP and 1,228-byte payload limit. Choose the socket path that fits your host and measured packet rate.
Solana shred receiver in Rust with Tokio and recvmmsg
Build a Linux UDP receiver with Tokio readiness, SO_REUSEPORT, preallocated recvmmsg batches, source filtering, and complete datagram reads.
Read guide and download source →Go · net.ListenConfig, SO_REUSEPORTReceive raw Solana shreds in Go with SO_REUSEPORT
A downloadable Go UDP receiver using net.ListenConfig, Linux SO_REUSEPORT, a large receive buffer, source filtering, and one-second counters.
Read guide and download source →C · AF_XDP, XSKMAP, NIC queuesC AF_XDP receiver for raw Solana shred datagrams
Start from the maintained AF_XDP C sample, then use a downloadable XDP filter for the shred source and verified UDP destination port.
Read guide and download source →Python · asyncio.DatagramProtocol, local testingPython asyncio UDP receiver for Solana shred testing
Download a Python asyncio datagram probe for verification challenges, source filtering, local packet injection, and live shred arrival checks.
Read guide and download source →These examples establish receipt of raw datagrams. They do not turn an unverified UDP payload into a trusted transaction. Start with the production receiver checklist before using decoded data in a trading system.