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§
- Broadcastable
Call - Allows to broadcast a request to many RPC endpoints.
- Bundle
Signer - A
Signer
wrapper to sign bundles. - Endpoints
- Stores a list of transports that can be used to broadcast a request to.
- Endpoints
Builder - 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 formev_*
andeth_*
requests and delegates all others to the inner [Transport
]. - MevShare
Bundle - A MEV-Share bundle hat can be sent or simulated.
Traits§
- EthMev
Provider Ext - Extension trait for sending and simulate eth bundles.
- MevShare
Provider Ext - Extension trait for sending and simulate MEV-Share bundles.
Type Aliases§
- Ethereum
Reqwest EthBundle - A
EthBundle
on Ethereun network using Reqwest HTTP transport. - Ethereum
Reqwest MevShare Bundle - A
MevShareBundle
on Ethereun network using Reqwest HTTP transport.