I'm currently using a few different paid (shared, not dedicated) RPCs to send txs using sendTransaction()
to make some token swaps.
The txs take 20-60+ seconds to actually "land" and be confirmed on the chain, even with high priority fees (ex: 0.02 SOL or more). However, I see a lot of bots, like Bonk Bot, are able to land their txs and be confirmed in 5-10 secs or even less. This is despite them using very minimal priority fees (0.001 SOL or less).
How are they able to achieve such fast transaction confirmation times?
A couple ways I can think of:
- Using dedicated RPCs. Does it really make that much of a difference?
- Sending txs directly to leader instead of thru RPC, by using TPUClient
- Optimizing the instructions within the transaction itself
The above ways don't seem to answer explain why the tx confirmation times are so vastly different (orders of magnitude) though, I don't think - would love thoughts.
Thank you so much.