ShredStream - 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

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 regionICMP source IPs
πŸ‡³πŸ‡± Amsterdam64.130.43.108
πŸ‡ΊπŸ‡Έ New York64.130.37.235
πŸ‡©πŸ‡ͺ Frankfurt64.130.41.236
πŸ‡―πŸ‡΅ Tokyo198.13.133.89
πŸ‡ΈπŸ‡¬ Singapore67.209.55.19
πŸ‡¬πŸ‡§ London64.130.63.211
πŸ›°οΈ Far Point198.13.133.126
πŸ‡¦πŸ‡Ί Sydney82.26.116.35

Shreds Client Example – TypeScript

  1. Rename the .env.sample file to .env.
  2. Update the values in the .env file 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"
⚠️ 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:
ini
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.
  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.