Earning 10+ SOL Daily. The Smart Money Way

PROLOGUE
"The best way to find yourself is to lose yourself in the service of others"
Mahatma Gandhi
If you've found success with this guide and are feeling generous, feel free to donate some of the profit to charity funds. Thank you!
Hey there! Sorry for the NFT spam - just wanted to drop in and share something I've been working on: a Solana program (essentially a smart contract) bot inspired by the tech over at Jito Labs. This bot is a game-changer for those of us tired of shitcoin flipping game and looking for a more smart route. The goal? To level the playing field for achieving that dream of generational wealth.
Here's the lowdown: my sandwich bot automates trading of a specific token on the Solana mainnet, sidestepping the usual transaction hassles. How do we pull this off? We'll deploy our own program. Unlike EVM-based blockchains, Solana uses a unique setup where programs handle instructions and accounts hold data. By launching our program, we effectively harness Solana's computing power, allowing the bot to operate directly from your browser. This setup lets us front-run transactions on major Solana dexes like Jupiter, Orca, and Raydium.
Have you guys caught wind of that Solana MEV bot story? It made a staggering $1.7 million from just one transaction. Pretty wild, right? And then there's the tale of jaredfromsubway's bot on Ethereum – that one's racked up over $40 million to date.
These stories are not just impressive; they're a testament to the kind of impact advanced trading bots can have in the crypto space. Whether you're deep into Solana or Ethereum, the potential for MEV strategies to significantly boost income is undeniable.
There's plenty of info about sandwiching and MEV bots out there, but here's a quick primer: we're essentially monitoring the mempool for pending transactions, then jumping in with our transaction set just 1 lamport higher in gas fees. This ensures our transaction gets processed first, followed by a sell order in the same block, effectively "sandwiching" the initial transaction and profiting from the slippage difference.
CHAPTER ONE
Setting everything up

1.RPC API endpoint
To start, it's essential to choose a reliable RPC node API endpoint. Here is an official list of Solana's RPC providers from which you can select one that suits your preferences. However, be cautious of rate limits. My bot is designed to handle a maximum of 50 RPC requests per second to fit within the basic $50 plan offered by most RPC providers. For this tutorial, I am utilizing Helius.
1.1. Navigate to the dashboard and select the $49/month plan for purchase.
1.2. Following successful payment, on the same dashboard page, scroll down to locate and copy the Mainnet General Purpose RPC URL

2. Solana Playground
Solana Playground (Solpg) is a browser-based IDE designed for rapid development, deployment, and running Solana programs. To get started, go to
https://beta.solpg.io/.
2.1 Create a new project


2.2 Create Playground Wallet
If it is your first time using Solana Playground, you'll first need to create a Playground Wallet.
Click on the red status indicator button labeled "Not connected" at the bottom left of the screen, save your wallet's keypair file to your computer for backup, then click "Continue".


After your Playground Wallet is created, you will notice the bottom of the window now states your wallet's address, your SOL balance, and the Solana cluster you are connected to.
2.3 Set custom endpoint
Next, I'm going to configure the custom RPC endpoint I set up before. It's a key step to make sure transactions get processed quicker. By default, Solpg uses a public Solana RPC endpoint, which have a lower rate limits for requests and could potentially crash under heavy load.
Navigate to settings, choose 'Custom' from the Endpoint dropdown menu, paste the link, and then click 'Add'.


Summary
With Solana Playground environment configured, I'm all set for the next steps in bot development. I've initiated a new project, established a Playground Wallet, and set a custom RPC endpoint to bypass potential bottlenecks associated with public endpoints. In playground, we already have useful information to interact with our playground globals defined in pg namespace. For example, I can access my wallet by using pg.wallet or RPC by pg.connection.
CHAPTER TWO
Deploying the program

The next step involves deploying a program, which requires some SOL due to Solana's "rent" fee for blockchain data storage. This fee ensures your program's data stays on the blockchain. Rent is paid annually and is calculated based on the data size. To be rent-exempt and remain on the network, programs must have enough lamports. Programs and accounts with insufficient lamports for rent are removed in a process called Garbage Collection. Rent fees for storage differ from transaction fees for processing instructions. Overall, paying program rent fees can be compared to paying gas fees for deploying a smart contract on Ethereum.
1.Build
Copy this code (click) and paste it into the lib.rs file, replacing the original code. Then, click the "Build" button.

If you've followed the steps correctly, you should see a "Build successful" message. If you encounter errors, go through the steps one by one from the beginning, ensuring you've copied the entire code. If errors persist, check that the RPC is functioning properly.

2.Fund the wallet

The next step requires having up to 2 SOL in your Playground wallet. To top it up, get the wallet address by clicking the three dots button.

Ensure you back up your wallet to never lose access to your funds. You can do this by clicking "Export." To restore it, click "Import."

3.Deploy
Navigate to "BUILD & DEPLOY"

Now i'm ready to deploy my program to the Solana Mainnet. Click "Deploy"

During deployment, you may encounter some errors or warnings. Don't worry or click anything; just wait for successful deployment until the progress bar is completely filled.

Wait untill all transactions are confirmed...

The program is deployed!

Summary
Now that your program is ready, you can verify its correct deployment by copying the program ID found in the "Build & Deploy" section and checking it on Solscan.

CHAPTER THREE
Running the bot

1.Set up
To interact with this program, I need to create a client. This script will override Jito Labs' transfer methods, directing them to our program. Go to the "Build & Deploy" section, select the client.ts file, and paste this script (CLICK). By default, the bot targets the WSol address, which is "So11111111111111111111111111111111111111112". You can find token addresses in the provided list. Here are examples of the most liquid ones:
By changing the value in brackets the bot will target the desired tokens.

2.Fund and Start
The final steps involve providing the bot with liquidity to trade. You can do this by funding the Playground wallet as we did in the second step of Chapter Two and then clicking "Run". You can safely close the tab and go about your business; the bot will continue it's work. The minimum amount to start with is around 10-20 SOL to achieve a noticeable profit. If you provide the bot with less than 10 SOL, you will likely end up spending more on fees than you will earn in profit. It's important to remember that the more liquidity you provide to the bot, the larger the transactions you can sandwich. For instance, you won't be able to frontrun transactions worth 30 SOL if you only have 29 SOL in your balance.


For this test, I deposited 20 SOL and let the bot trade for 12 hours. Here are the results.

Final
If you've enjoyed the bot and appreciated the profits, there's an opportunity to enhance its performance significantly. By deploying your own node, you can make unlimited requests, ensuring that your trades are executed faster and more securely with a dedicated, private Solana node powering your transactions. Furthermore, migrating from browser-based operation to deploying your bot on a dedicated server can further enhance the client's speed and reliability.
For serious investors or those with proposals for bot improvement, I'm open to discussions and collaborations. Feel free to contact me via this email for further engagement.