└── README.md /README.md: -------------------------------------------------------------------------------- 1 | ![Banner](https://sandfun.io/sandfun_ui.png) 2 | 3 | ## SANDFUN V1.0 4 | 5 | [![TypeScript](https://badgen.net/badge/icon/typescript?icon=typescript&label)](https://typescriptlang.org) 6 | ![](https://img.shields.io/badge/soar-trades-blue) 7 | [![GitHub License](https://img.shields.io/badge/license-mit.svg)](https://raw.githubusercontent.com/link/main/LICENSE.md) 8 | 9 | 10 | **SandFun** is a tool that can execute sandwich attacks for Raydium AMM pools on the solana blockchain. It also supports PumpFun trades. 11 | 12 | > *Regardless of the node speed, SandFun's transactions are confirmed before the target ones by using jito bundles and priority fees.* 13 | 14 | ### LINKS 🔗 15 | 16 | Website 17 | 18 | FAQS 19 | 20 | 21 | # Features 🤖 22 | - `On-chain tip calculation` 23 | - `Sandwich any swap that results in profit` 24 | - `Send bundles through jito's blockengine` 25 | - `Supports both SOL-TOKEN and TOKEN-SOL pairs` 26 | - `Dynamic & easily extendable instruction data decoder` 27 | 28 | ## Wallet 💷 29 | First step: 30 | 1. Create a new Solana wallet 31 | 2. Transfer some SOL to this new wallet 32 | 3. Convert some SOL to USDC or WSOL (you need USDC or WSOL depending on the configuration in .env file) 33 | 34 | > [!TIP] 35 | > # Installation 🔗 36 | > 37 | > 38 | > [1] Download SandFun from our website ```https://sandfun.io``` 39 | > 40 | >[2] Fill the settings file according to your needs 41 | > 42 | >[3] Launch the bot and start frontrunning trades 43 | 44 | ## Configure .env file 📝 45 | 1. Configure the script by updating `.env.copy` file (**remove the ".copy" extension**). 46 | 2. `MY_PRIVATE_KEY` (your wallet private key) 47 | 3. `RPC_ENDPOINT` (https RPC endpoint) paid services are faster 48 | 4. `RPC_WEBSOCKET` (websocket RPC endpoint) paid services are faster 49 | 5. `TOKEN_SYMB` (which pools to snipe, USDC or WSOL) 50 | 6. `BUY_AMOUNT` (amount used to buy each new token) 51 | 7. `USE_SNIPEDLIST` (bot buy only tokens listed in snipedlist.txt) 52 | 8. `SNIPE_LIST_REFRESH_INTERVAL` (how often snipe list should be refreshed in milliseconds) 53 | 9. `MINT_IS_RENOUNCED` (bot buy only if mint is renounced) 54 | 10. `MIN_POOL_SIZE` (bot buy only if pool size is > of amount) 55 | 11. `MAX_POOL_SIZE` (bot buy only if pool size is < of amount) 56 | 13. `TAKE_PROFIT=80` (in %) 57 | 13. `STOP_LOSS=30` (in %) 58 | 14. `BIRDEYE_APIKEY=` get here: https://docs.birdeye.so/docs/authentication-api-keys 59 | 60 | 61 | ## Common Issues 📚 62 | > ### UNSUPPORTED RPC NODE 63 | > If you see following error in your log file: 64 | > `Error: 410 Gone: {"jsonrpc":"2.0","error":{"code": 410, "message":"The RPC call or parameters have been disabled."}` 65 | > It means your RPC node doesn't support methods needed to execute script. 66 | > FIX: Change your RPC node. You can use Shyft, Helius or Quicknode. 67 | > 68 | > ### NO TOKEN ACCOUNT 69 | > If you see following error in your log file: 70 | > `Error: No SOL token account found in wallet: ` 71 | > it means that your wallet not have USDC/WSOL token account. 72 | > FIX: Go to [Jup.ag](https://jup.ag) and swap some SOL/USDC or SOL/WSOL. 73 | > ![](https://github.com/SoaRTradesSol/solana-sniper-bot/blob/249d3cd832faf0164af33144707e4e4aa5c7e5bf/images/jupiter.png) 74 | 75 | 76 | ## Disclaimer 🔍 77 | Use this script at your own risk. No financial advice. 78 | --------------------------------------------------------------------------------