Geyser gRPC - 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-ts if you prefer a TypeScript Geyser bot
  • Use geyser-rust if you prefer a Rust Geyser bot

Bronnen voor ICMP-latentieprobes toestaan

Voor de regioselectie van gRPC verstuurt ERPC ICMP-latentieprobes naar uw geregistreerde IP-adres vanaf de hieronder vermelde proxyhosts. Sta inkomende ICMP-echoverzoeken toe vanaf elk vermeld bron-IP-adres. Als deze worden geblokkeerd door een firewall (ufw, cloudfirewall, beveiligingsgroep enz.), kan de meting 9999ms worden en kan een niet-optimale regio worden geselecteerd. Meerdere IP-adressen binnen één regio zijn afzonderlijke probehosts; ze zijn allemaal vereist.
ProberegioICMP-bron-IP-adressen
🇳🇱 Amsterdam84.32.103.245, 84.32.64.77
🇺🇸 New York64.130.37.222
🇩🇪 Frankfurt185.191.118.149, 185.191.118.177, 185.191.118.206
🇬🇧 London67.209.52.250
🇯🇵 Tokyo198.13.133.88
🇸🇬 Singapore202.8.11.52
🇦🇺 Sydney82.26.116.36
🛰️ Far Point63.254.162.14

Geyser Client Example – TypeScript

  1. Rename .env.sample to .env
  2. Edit .env with your actual values:
ini
GEYSER_ENDPOINT=http://grpc-ams1.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. Install dependencies and start the development server:
bash
pnpm i
pnpm dev
Geyser TypeScript VSCode

Geyser Client Example – Rust

  1. Rename .env.sample to .env
  2. Edit .env with your actual values:
ini
GEYSER_ENDPOINT=http://grpc-ams1.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
Geyser Rust VSCode

✅ 1-Day Free Trial Available

Both Geyser and Shreds bots can be tested for free for 1-Day via the official Validators DAO Discord server.