Shredstream - 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
shreds-tssi prefiere un bot de Shreds basado en TypeScript - Use
shreds-rustsi prefiere un bot basado en Rust que aproveche Shreds
Ejemplo de cliente de Shreds – TypeScript
- Cambie el nombre del archivo
.env.samplea.env. - Actualice los valores del archivo
.envcon su endpoint real:
ini
SHREDS_ENDPOINT=https://shreds-ams.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"SHREDS_ENDPOINT=https://shreds-ams.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"Nota importante: este endpoint se proporciona como ejemplo y no se puede utilizar directamente. Obtenga y configure su endpoint real.
- Instalar dependencias y ejecutar el script:
bash
pnpm i
pnpm devpnpm i
pnpm dev
Ejemplo de cliente de Shreds – Rust
- Cambie el nombre de
.env.samplea.env - Edite
.envcon su endpoint real de Shreds:
ini
SHREDS_ENDPOINT=https://shreds-ams.erpc.global
SOLANA_RPC_ENDPOINT="https://edge.erpc.global?api-key=YOUR_API_KEY"SHREDS_ENDPOINT=https://shreds-ams.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 endpoints de Shreds se pueden probar de forma gratuita durante 1 día a través del servidor oficial de Discord DAO.
Únete aquí: https://discord.gg/C7ZQSrCkYR