Easily send transaction bundles to MEV-Share or block builders using Alloy.
You can have a look at the docs to help you get started. There are also some examples available.
Add alloy-mev
to your Cargo.toml
:
alloy-mev = "0.5"
This crate contains the MevShareProviderExt
extension trait. When it's
in scope, it adds methods to send bundles to the Flashbots matchmaker on a
provider built on an HTTP transport.
This crate also contains the EthMevProviderExt
extension trait that adds
methods to broadcast bundles to blocks builders on a provider built on an
HTTP transport.