API
shredstream.proto
SubscribeEntries takes an empty request and streams messages until you disconnect. Each message holds one batch of entries from slot. A slot arrives as several batches, in order.
entries is a serialized list of Solana ledger entries, each carrying the transactions it recorded. See Decoding entries for the exact layout and ready-made decoders.
What you receive
- Signed transactions, in the order the leader recorded them, including legacy, v0 and v1 transactions.
- No execution results. The transactions have not been executed yet, so there is no status, logs, fee or balance change. A transaction you see here can still fail, and the slot can still be skipped.
- No server-side filtering. Every batch is delivered; filter by program or account in your client, as the examples do.
Staying connected
- Set the client’s maximum decoded message size to at least 64 MB.
- Reconnect with exponential backoff when a stream ends. Nothing is replayed on reconnect; entries broadcast while you were disconnected are not resent.
- Do not retry on
UNAUTHENTICATED,NOT_ENTITLED,IP_NOT_ALLOWEDorQUOTA_EXCEEDED. See Errors.