Skip to content

bigmacman1129/solana-rust-sniper-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Ultra-Fast New Token Sniper on Raydium and Pump.fun in Rust 🚀

Overview

Introducing the Solana Ultra-Fast New Token Sniper written in Rust 🦀, designed to detect newly launched tokens on both Raydium and Pump.fun and execute buys at lightning speed ⚡. With Rust's memory safety features and performance optimizations, built with Rust for superior performance and security. Tailored for both novice and experienced traders.


Key Features

🚀 Speed and Efficiency

  • Lightning-Quick Transactions: Leveraging Rust's exceptional performance, our bot allows you to snipe new tokens almost instantly. Say goodbye to delays and seize opportunities as they arise!

🔒 Safety First

  • Robust Security: Rust's safety guarantees minimize bugs and vulnerabilities, ensuring your trading activities are secure. Trade with confidence and peace of mind.

📊 Multiple gRPC Connections

  • Stay Updated: Effortlessly connect to top Solana data providers like Helius and Yellowstone through multiple gRPC connections. Get real-time updates and make informed trading decisions.

👩‍💻 User-Friendly Interface

  • Intuitive Design: Our sniper bot features a clean and accessible interface, making it easy for users of all experience levels to navigate. Start trading in no time!

🛠️ Rich Utilities

  • Advanced Features:
    • jito-confirm: Engage in low-latency transactions on platforms like Raydium and Pumpfun.
    • jito-bundle: Bundle buy/sell actions with up to 20 wallets in Raydium/Pumpfun, enhancing your trading strategy and flexibility.

Directory Structure

src/
├── core/
│   ├── token.rs        # Token definitions and handling
│   └── tx.rs        # Transaction handling
| 
├── engine/
│   ├── swap.rs        # Token swap(buy/sell) functionalities in various Dexs
│   └── monitor        # New token monitoring(and parse tx) in Dexs using geyser rpc, and normal rpc
│       └── helius.rs        # Helius gRpc for tx listen and parse.
│       └── yellowstone.rs        # Yellowstone gRpc for tx listen and parse.
|
├── dex/
│   ├── pump_fun.rs        # Pump.fun
│   ├── raydium.rs        # Raydium
│   ├── meteora.rs        # Meteora
│   └── orca.rs        # Orca
│
├── services/
│   ├── jito.rs        # Jito service provides ultra-fast transaction confirmation
│   ├── nozomi.rs        # Jito service provides ultra-fast transaction confirmation
│   ├── zeroslot.rs        # Jito service provides ultra-fast transaction confirmation
│   └── nextblock.rs        # NextBlock service provides the ultra-fast transaction confirmation in unique way
|
├── common/
│   ├── logger.rs        # Logs to be clean and convenient to monitor.
│   └── utils.rs        # Utility functions used across the project
│
├── lib.rs
└── main.rs

Trial Versions

Solana PumpRay Sniper (Trial)

🗂️ solana-pumpray-sniper(trial).zip

Strategy Details:

  • Entry Trigger: Monitor user purchases of the new tokens on Dex; execute a buy order upon detection.
  • Exit Trigger: Monitor user sales of tokens by checking tp/sl; execute a sell order upon detection.
  • Time Limitation: If a position remains open for more than 60 seconds, initiate an automatic sell.
    (Note: The tp/sl, as well as the 60-second time limit, are adjustable parameters via environment settings.)

How To Run

  1. Environment Variables Settings
PRIVATE_KEY= # your wallet priv_key
RPC_API_KEY= #your helius rpc api-key (Please use premium version that has Geyser Enhanced Websocket)
SLIPPAGE=10
JITO_BLOCK_ENGINE_URL=https://ny.mainnet.block-engine.jito.wtf
JITO_TIP_VALUE=0.00927
TIME_EXCEED=60 # seconds; time limit for volume non-increasing
TOKEN_AMOUNT=0.0000001 # token amount to purchase
TP=3 #3 times
SL=0.5 #50 percentage
  1. Add the wallet address you want to block on a new line and save the file.
0x1234567890abcdef1234567890abcdef12345678
0xabcdef1234567890abcdef1234567890abcdef12
  1. Run solana-pumpray-sniper.exe.

image


Test Result: Same Block

2-22-2025-09-41

About

solana raydium sniper/pumpfun sniper: this solana raydium sniper/pumpfun sniper is written in Rust. In addtion to these solana raydium snipe bot(raydium sniping bot) and pumpfun snipe bot(pumpfun sniping bot), it has raydium bundler, pumpfun bundler, copy trading bot, raydium/pumpfun volume bot more

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages