Crate alloy_mev

Source
Expand description

§Alloy MEV

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.

§Installation

Add alloy-mev to your Cargo.toml:

alloy-mev = "0.5"

§Features

§MEV-Share

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.

§Blocks builders

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.

§Credits

Structs§

BroadcastableCall
Allows to broadcast a request to many RPC endpoints.
BundleSigner
A Signer wrapper to sign bundles.
Endpoints
Stores a list of transports that can be used to broadcast a request to.
EndpointsBuilder
An Endpoints builder.
EthBundle
A bundle that can be sent to one or more builder(s).
MevHttp
An Alloy Transport that add a signature in the headers for mev_* and eth_* requests and delegates all others to the inner [Transport].
MevShareBundle
A MEV-Share bundle hat can be sent or simulated.

Traits§

EthMevProviderExt
Extension trait for sending and simulate eth bundles.
MevShareProviderExt
Extension trait for sending and simulate MEV-Share bundles.

Type Aliases§

EthereumReqwestEthBundle
A EthBundle on Ethereun network using Reqwest HTTP transport.
EthereumReqwestMevShareBundle
A MevShareBundle on Ethereun network using Reqwest HTTP transport.