I don't want to expose my pending transactions to the public mempool b/c I want to prevent arbitrage and tactics like frontrunning.
You'll want to send a private transaction by using "
eth_sendPrivateTransaction". This sends the transaction privately through Flashbots -- it won't be included in the public mempool for everyone to see. If they can't see it, they can't take advantage of it by acting on the information within the transaction as easily.
You can use various RPC providers's private transactions endpoints for this -- for example, create an account and then enter in the following:
Btw if your transaction hasn't been mined yet (aka it hasn't gone through successfully by being pulled from the mempool and added to a block), you can use "