This is a unmaintained and dirty PoC of using GRPC to detect newly launched tokens on Raydium and snipe them with the goal of being the first buy. Please feel free to use this in your own code.
This program does not have any sell logic. This is not a bot. This is simply example code to demonstrate the capabilities and performance advantages that GRPC has over normal Solana RPC methods such as WebSockets.
- Yellowstone's Dragons Mouth GRPC streaming access (SVS's gRPC service)
- RPC HTTP/WebSocket access (Ideally SVS's Staked RPC for best results)
- Run
npm install - Rename
.env.copyto.env - Add Solana Vibe Station API key to both the
RPC_ENDPOINTandRPC_WEBSOCKET_ENDPOINTfields in the .env file - Add your private key in base64 format which can be exported from either Phantom or derived from your JSON keypair for your wallet.
- Run
npm run testto start the program
For anyone looking for RPC node access + GRPC streaming checkout our Discord server below.
Support us by joining our Discord.