From a7496b0c248eeaff4cc676247a485286a35bd06c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Dun=C4=91er?= Date: Sat, 13 Jan 2024 12:57:33 +0100 Subject: [PATCH 1/2] docs: update README.md --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6c2ac21..ec24b3c 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,18 @@ # Solana Sniper Bot Proof of concept - 2023-04-20 -This code is written as proof of concept for demonstrating how we can buy tokens immediately after liquidity pool is created. +This code is written as proof of concept for demonstrating how we can buy new tokens immediately after liquidity pool is created. + Script listens to new raydium USDC pools and buys token for a fixed amount in USDC. +Depending on speed of RPC node, the purchase usually happens before token is available on Raydium for swapping. # Setup -In order to run script you need to: -- Create new empty solana wallet +In order to run the script you need to: +- Create a new empty Solana wallet - Transfer some SOL to it. - Convert some SOL to USDC. - - We need USDC because script is buying USDC pairs. -- Export wallet private key and paste it in: `wallet.json` + - We need USDC because the script is buying USDC pairs. +- Export twallet private key and paste it into: `wallet.json` - Modify the buy.ts file and enter your RPC endpoint - Find line where it says: `ENTER RPC ENDPOINT HERE` and `ENTER RPC WEBSOCKET ENDPOINT HERE` and replace it with your endpoint From 1290036bb47e147fb2e36f76159cb6201c6f0f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Dun=C4=91er?= Date: Sat, 13 Jan 2024 12:58:32 +0100 Subject: [PATCH 2/2] docs: update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec24b3c..dcd80b4 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ In order to run the script you need to: - Transfer some SOL to it. - Convert some SOL to USDC. - We need USDC because the script is buying USDC pairs. -- Export twallet private key and paste it into: `wallet.json` +- Export wallet private key and paste it into: `wallet.json` - Modify the buy.ts file and enter your RPC endpoint - Find line where it says: `ENTER RPC ENDPOINT HERE` and `ENTER RPC WEBSOCKET ENDPOINT HERE` and replace it with your endpoint -- Run the script +- Run the script by typing: `npm run buy` in terminal