Skip to main content

quick start

Flashbots Protect API#

The Flashbots Protect API provides a simple way for developers to integrate Flashbots into their dApps.

Currently the API supports multiple ways to connect and send transactions:

  • JSON RPC: HTTP requests sent to the Protect API JSON RPC endpoint at Learn more here.
  • Websockets: use to send transactions to the Protect API websocket endpoints at wss:// Learn more here.

In either case the Flashbots Protect API will take your transactions and handle their submission to Flashbots, repeatedly submitting each block and monitoring for their inclusion. The major difference between the two integrations is that if you use the JSON RPC endpoint you will need to query to derive the status of a transaction (pull), whereas the websocket SDK will push you updates as they occur (push).

You will find here guides on how to use each method. We've also added a guide on how to build and sign a transaction before sending it to the Flashbots Protect API if you are building a web application.

Lastly, please note that while transactions using Flashbots for frontrunning protection should in theory never reach the public mempool, there is a chance that transactions are made public through uncled blocks. Please read here to learn more about uncle bandits and how to mitigate this risk.


Please reach out in the #flashbots-protect channel in the Flashbots discord.