This codebase is a demonstration of how to monitor new solana tokens using typescript language and solana rpc methods. By default the script listens for new raydium liquidity pool transactions, extracts the necessary information for additional use, and stores it.
disclaimer: Use this code at your own risk as it is here for educational purposes, there is no guarantee of profit! DO NOT use the default solana RPC in production, instead use an RPC provider to ensure reliability, speed and effectiveness of the bot.
A good recommendation is helius labs. You can sign up for free here helius rpc and use the referal code 3wISAeRX8K
to get 5,000,000 free credits on the paid plan.
Once you've signed up, add the RPC_ENDPOINT
and RPC_WEBSOCKET_ENDPOINT
to a .env
file as per the format in the .env.example
file.
Running the sniper:
- Install dependencies:
npm install
- Copy the
.env.example
file into a.env
file. - As per disclaimer above, replace default rpc endpoints with a rpc provider endpoints.
- In your terminal, run
npm run monitor
Your terminal should show monitoring new token launches..
![monitor_new_token_image](https://private-user-images.githubusercontent.com/159651488/318082646-1afb4714-7106-4d2d-95c0-489ba2021ac0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyNzE2NjEsIm5iZiI6MTcyNDI3MTM2MSwicGF0aCI6Ii8xNTk2NTE0ODgvMzE4MDgyNjQ2LTFhZmI0NzE0LTcxMDYtNGQyZC05NWMwLTQ4OWJhMjAyMWFjMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyMVQyMDE2MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NWNkZWIxZTA3NjVmNjNhMzQ4OTc5OThjMjI5MGM1YmExNDAyYzQxZTRkNDFlYWRlYzgzMTg2NTEzNWU5MDhhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.S6rsHWkAapSzPXZpxks-XQz0zOfedJb9mozkUTIwcec)
For community discussions on sniper bots:
For any business inquiries, reach out at discord: archiesnipes