Practical overview
When it fits
Use it when a Go application built around w3 needs the documented Flashbots relay or mev-geth RPC methods, rather than implementing those bindings itself.
Who it is for
- Go developers integrating Flashbots relay or mev-geth RPC calls into Ethereum applications.
- Teams building transaction services or utilities for bundle simulation, private transaction handling, or Flashbots statistics.
Documented uses
- Submit a signed transaction bundle to the Flashbots relay.
- Call bundle simulation and inspect its response.
- Send or cancel a private transaction.
- Retrieve user or bundle statistics through the V2 RPC methods.
Requirements & limits
The repository is public and identifies the project as MIT-licensed. Installation is documented with `go get`; relay requests use a private key for signing, while the README also shows connecting to an RPC endpoint that does not require signed requests.
- The library is designed for use with the Go w3 package.
- Relay connections use signed requests; other RPC endpoints can be connected without signed requests when they do not require them.
- The relay does not support batched calls through a single Client.Call.
- The README lists V2 user and bundle statistics methods and marks the older versions as deprecated.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install the Go package and connect to an RPC endpoint
Add the package to a Go project and follow the documented connection patterns for the Flashbots relay or an endpoint that does not require signed requests.
Before you start
- A Go project
- The w3 package used by the library
- A private key for signing requests when connecting to the Flashbots relay
Steps
Add the dependency with the command below.
go get github.com/lmittmann/flashbotsFor the Flashbots relay, use
flashbots.MustDialwith the relay URL and a private key; the returned client adds theX-Flashbots-Signatureheader.For an RPC endpoint that does not require signed requests, use
w3.MustDialwith that endpoint.
Expected outcome
A Go client connection pattern for making Flashbots relay or unsigned-endpoint RPC calls.
Guide limitations
- The Flashbots relay does not support batch requests; multiple calls in one
Client.Callresult in a server error. - This guide covers package installation and connection setup, not application execution or transaction outcomes.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 14 October 2026
- Original website title
- lmittmann/flashbots · Official homepage title · retained in its source language

