This project is Solana SPL-Token sniper which aims to swap (purchase) new Raydium liquidity pairs within the first price candle by scanning Solana blockchain transactions.
Use the following instructions to install and run the program (assume node is installed):
https://api.mainnet-beta.solana.com
and wss://api.mainnet-beta.solana.com
for testing purposes.npm install
.utils/config.js
file, enter public key, private key, and both RPC connections. Also include amount of SOL to use per swap.
This project contains two different strategies for sniping new liquidity pairs:\
node strategy1/start1.js
. The transaction may fail multiple times before succeeding as Solana transactions can be dropped with certain RPC nodes.node strategy2/start2.js
.
Both scripts utilize the same swapping/position management system found in ./swap/swap1.js
and /swap/swap2.js
.