Pump.fun Token Sniper Bot that listens to new pump.fun pools and buys tokens for a fixed amount in SOL. Depending on the speed of the RPC node, the purchase usually happens before the token is available on pump.fun UI for swapping.
SOL Snipe
Auto-Sell
TP/SL
Telegram Check
Website Check
Twitter Check
Fast Buy
Note
This is provided as is, for learning purposes.
To run the script you need to:
- Create a new empty Solana wallet and transfer some SOL to it
- Edit
config.py
with your settings - Install dependencies
pip install -r requirements.txt
- Run the script
py main.py
Configure the script by updating config.py
file.
PUB_KEY
(your wallet private key)PRIV_KEY
(your wallet private key)RPC
(https RPC endpoint)CHECK_TWITTER
(check if new pools have twitter)CHECK_WEBSITE
(check if new pools have website)CHECK_TELEGRAM
(check if new pools have telegram)BUY_AMOUNT
(set the default buy amount)
Important
If you have an error which is not listed here, please create a new issue in this repository.
If you see empty transactions on SolScan most likely fix is to change commitment level to finalized
.
If you see following error in your log file:
Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}, "id": "986f3599-b2b7-47c4-b951-074c19842bad" }
It means your RPC node doesn't support methods needed to execute script.
FIX: Change your RPC node. You can use Shyft, Helius or Quicknode.
Telegram: @Arvingolshani
Use this script at your own risk.