Direct Shreds - Quickstart
Install SLV
bash
curl -fsSL https://storage.slv.dev/slv/install | shcurl -fsSL https://storage.slv.dev/slv/install | sh$ slv b init

With a single command,
slv b init, you can instantly scaffold a development environment for Solana bots using high-performance stream-based data.bash
slv b initslv b init- Use
shreds-tsif you prefer a TypeScript-based Shreds bot - Use
shreds-rustfor a Rust-based bot leveraging Shreds
Allow ICMP latency-probe sources
For Shreds region selection, ERPC sends ICMP latency probes to your registered IP from the proxy hosts listed below. Allow inbound ICMP echo requests from every listed source IP. If they are blocked by a firewall (ufw, cloud firewall, security group, etc.), the measurement can become
9999ms and a non-optimal region may be selected. Multiple IPs in one region are separate probe hosts; all of them are required.| Probe region | ICMP source IPs |
|---|---|
| 🇳🇱 Amsterdam | 64.130.43.108 |
| 🇺🇸 New York | 64.130.37.235 |
| 🇩🇪 Frankfurt | 64.130.41.236 |
| 🇯🇵 Tokyo | 198.13.133.89 |
| 🇸🇬 Singapore | 67.209.55.19 |
| 🇬🇧 London | 64.130.63.211 |
| 🛰️ Far Point | 198.13.133.126 |
| 🇦🇺 Sydney | 82.26.116.35 |
Shreds Client Example – TypeScript
- Rename the
.env.samplefile to.env. - Update the values in the
.envfile with your actual endpoint:
ini
SHREDS_ENDPOINT=http://shreds-ams6-1.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"SHREDS_ENDPOINT=http://shreds-ams6-1.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"⚠️ Important Note: This endpoint is provided as an example and cannot be used directly. Obtain and set your actual endpoint accordingly.
- Install dependencies and run the script:
bash
pnpm i
pnpm devpnpm i
pnpm dev
Shreds Client Example – Rust
- Rename
.env.sampleto.env - Edit
.envwith your actual Shreds endpoint:
ini
SHREDS_ENDPOINT=http://shreds-ams6-1.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"SHREDS_ENDPOINT=http://shreds-ams6-1.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"Please note:
This endpoint is a sample and cannot be used as is. Please obtain and configure the appropriate endpoint for your environment.
- Build and run the client:
bash
RUST_LOG=info cargo runRUST_LOG=info cargo run
âś… 1-Day Free Trial Available
Shreds endpoints can be tested for free for 1-Day via the ERPC Web Dashboard.
Open the dashboard: https://dashboard.erpc.global/en
Solana Stream SDK

The client implementation included in the Shreds starter code downloaded via the
is powered by the open-source Solana Stream SDK.
slv b init commandis powered by the open-source Solana Stream SDK.
Supporting both Rust and TypeScript, the SDK enables efficient handling of Solana’s direct communication layer —
including Shreds subscription, packet parsing, and transaction extraction.
including Shreds subscription, packet parsing, and transaction extraction.
With this SDK, you can start developing with Shreds streams right away.
The starter code generated by
The starter code generated by
slv b init serves as a practical template to build upon for your own applications.For more details, visit the GitHub repository:
https://github.com/ValidatorsDAO/solana-stream
https://github.com/ValidatorsDAO/solana-stream






