Direct Shreds - Quickstart

Install SLV

bash
curl -fsSL https://storage.slv.dev/slv/install | sh

$ slv b init

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 init
  • Use shreds-ts if you prefer a TypeScript-based Shreds bot
  • Use shreds-rust for a Rust-based bot leveraging Shreds

Allowlist the Shreds load balancer IPs

We select the nearest node to your registered IP using real-time ping checks from every regional Shreds load balancer. If ICMP is blocked by your firewall (ufw, security groups, etc.), the ping result becomes 9999ms and the Far Point node is chosen even if a closer region (e.g., Frankfurt) is available. Please allowlist the IPs below so the closest region is used automatically.
RegionDomainIP Address
🇳🇱 Amsterdamshreds-ams6-1.erpc.global64.130.43.108
🇩🇪 Frankfurtshreds-fra6-1.erpc.global64.130.57.74
🇬🇧 Londonshreds-lon6-1.erpc.global64.130.63.211
🇺🇸 New Yorkshreds-ny6-1.erpc.global64.130.37.235
🇺🇸 Chicagoshreds-chi-2.erpc.global84.32.71.34
🇺🇸 Salt Lake Cityshreds-slc6-1.erpc.global72.244.154.7
🇸🇬 Singaporeshreds-sgp6-1.erpc.global67.209.55.19
🇯🇵 Tokyoshreds-ty6-1.erpc.global198.13.133.89
🛰️ Far Pointshreds-far-point-2.erpc.global82.27.98.2

Shreds Client Example – TypeScript

  1. Rename the .env.sample file to .env.
  2. Update the values in the .env file with your actual endpoint:
env
SHREDS_ENDPOINT=https://shreds-ams.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.
  1. Install dependencies and run the script:
bash
pnpm i pnpm dev
Shreds TypeScript VSCode

Shreds Client Example – Rust

  1. Rename .env.sample to .env
  2. Edit .env with your actual Shreds endpoint:
env
SHREDS_ENDPOINT=https://shreds-ams.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.
  1. Build and run the client:
bash
RUST_LOG=info cargo run
Shreds Rust VSCode

âś… 1-Day Free Trial Available

Shreds endpoints can be tested for free for 1-Day via the official Validators DAO Discord server.

Solana Stream SDK

Solana Stream SDK
The client implementation included in the Shreds starter code downloaded via the slv b init command
is 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.
With this SDK, you can start developing with Shreds streams right away.
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