I don't want to expose my pending transactions to the public mempool b/c I want to prevent arbitrage and tactics like frontrunning.

1 Answer 1


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:

enter image description here

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 "eth_cancelPrivateTransaction"

For more info, check out eth_sendPrivateTransaction and the general Transact API page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.