Geyser gRPC - Inicio rápido
Instala SLV
bash
curl -fsSL https://storage.slv.dev/slv/install | shcurl -fsSL https://storage.slv.dev/slv/install | sh$ slv b init

Con un solo comando,
slv b init, puede crear al instante un entorno de desarrollo para bots de Solana que usan flujos de datos de alto rendimiento.bash
slv b initslv b init- Use
geyser-tssi prefiere un bot Geyser en TypeScript - Use
geyser-rustsi prefiere un bot Geyser en Rust
Ejemplo de cliente Geyser – TypeScript
- Cambie el nombre de
.env.samplea.env - Edite
.envcon sus valores reales:
ini
GEYSER_ENDPOINT=http://grpc-ams1.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"GEYSER_ENDPOINT=http://grpc-ams1.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"Nota:
Este endpoint es solo una muestra y no se puede utilizar tal cual. Obtenga y configure el endpoint adecuado para su entorno.
- Instalar dependencias e iniciar el servidor de desarrollo:
bash
pnpm i
pnpm devpnpm i
pnpm dev
Ejemplo de cliente Geyser – Rust
- Cambie el nombre de
.env.samplea.env - Edite
.envcon sus valores reales:
ini
GEYSER_ENDPOINT=http://grpc-ams1.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"GEYSER_ENDPOINT=http://grpc-ams1.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"Nota:
Este endpoint es solo una muestra y no se puede utilizar tal cual. Obtenga y configure el endpoint adecuado para su entorno.
- Construir y ejecutar el cliente:
bash
RUST_LOG=info cargo runRUST_LOG=info cargo run
Prueba gratuita de 1 día disponible
Los bots Geyser y Shreds se pueden probar de forma gratuita durante 1 día a través del servidor oficial de Discord de DAO.
Únete aquí: https://discord.gg/C7ZQSrCkYR