A program that copies buy and sell transactions from a target account. Buys/sells occurs ~0-2 seconds from target account transaction based on your location in relation to the nearest Jito blockengine.
This program assumes you have both a Solana gRPC subscription and "fast" RPC connection. I personally use the Shyft gRPC service along with Ligma RPC. Contact me for a version that can be used without paid subscription services.
- Run
npm install
- Create a
.env
file in the root directory with the following variables:PUBLIC_KEY
: Your wallet public key.PRIVATE_KEY
: Your wallet private key.RPC_URL_1
: Primary Solana RPC (your fastest) connection.RPC_URL_2
: Secondary Solana RPC (for low-stakes data requests) connection.WS_URL_SCAN
: Solana websocket connectionENDPOINT
: Your gRPC endpoint.X_TOKEN
: Your gRPC key.
- Make sure your wallet has both WSOL (for transaction) and SOL (for tx fees).
- Setup the config.js file with both the amount of WSOL to use per trade and the address of the target account.
- Run
node copyTrade/scanForBuy.js
to start the program.
Please make sure you read/understand all code if you are putting your public/private keypair into this program.