Solana bot - 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 geyser-typescript if you prefer a TypeScript-based Geyser bot
  • Use shreds-rust for a Rust-based bot leveraging Shreds
Just pick a template, and all required setup will be done automatically.
Shreds Rust 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
⚠️ 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
cargo run

Geyser Client Example – TypeScript

  1. Rename .env.sample to .env
  2. Edit .env with your actual values:
env
X_TOKEN=YOUR_X_TOKEN_OR_API_KEY GEYSER_ENDPOINT=https://grpc-ams.erpc.global
⚠️ Please note: This endpoint is a sample and cannot be used as is. Please obtain and configure the appropriate endpoint for your environment.
  1. Install dependencies and start the development server:
bash
pnpm i pnpm dev

✅ 7-Day Free Trial Available

Both Geyser and Shreds bots can be tested for free for 7 days via the official Validators DAO Discord server.