Lot of people on the last post commented that without being the leader validator I can’t to frontrunning attacks. And, they’re not totally right. I’ll explain why later, but let’s get into my issue. Here are two issues I have:
1. Sometimes, when my attack goes through, I get in a problem that does this:
1. Buying: Successful.
2. Selling: Err.
or just buying gives err.
The error (i think) is because of the Associated Token Account that NEVER got initialized.
Look at this TX:
How can I initialize a Token Account?
2. Second issue:
Sometimes my TX does this:
1. Buying goes through and gets validated by Jito (and on my console output gives me the successful message, status 200)
2. Then when selling, TX gets created, and somehow it says it got validated (status 200), but on solscan.io i never see that TX. Maybe that happens because I did set as blockhash slot to expiry 10?
I checked back the Jito tip and it’s correct, did someone encounter my same problem, when doing sniping, automated txs.. ?
Let’s get back where I was explaining why doing MEV on Solana without being a validator is possible.
Using Rust and Jupiter, I do everything in around 80ms or less. Then, I send the TX directly to Jito (that sends directly to the validator). Using the highest tip (99 percentile) it gets me the highest probability of my TX that goes through. I even talked with experts from Jito, who do this for living, and they told me it is possible but they can’t guarantee your code will get you to a profitable bot.
A TX usually needs around/more than 400ms. Enough time using paid services like gRPC, private RPC endpoints, …