https://github.com/cakevm/mev-share-client
Client for subscribing to MEV-Share events using Alloy
https://github.com/cakevm/mev-share-client
Last synced: 21 days ago
JSON representation
Client for subscribing to MEV-Share events using Alloy
- Host: GitHub
- URL: https://github.com/cakevm/mev-share-client
- Owner: cakevm
- License: apache-2.0
- Created: 2025-02-11T15:38:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-21T10:29:24.000Z (10 months ago)
- Last Synced: 2025-08-21T12:30:32.468Z (10 months ago)
- Language: Rust
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Alloy MEV-Share Client
This crate allows to subscribe to the [MEV-Share event stream](https://docs.flashbots.net/flashbots-mev-share/searchers/event-stream) from [Flashbots](https://www.flashbots.net) using types from `alloy-rpc-types-mev`. But right now does not allow to send bundles to the MEV-Share API.
# Why another crate?
Clients like [mev-share-rs](https://github.com/paradigmxyz/mev-share-rs) still depend on `ethers` and provide more than necessary for most users. This crate is a lightweight alternative to subscribe to the MEV-Share event stream.
# Usage
See `subscribe_mev_share.rs` in [examples](./examples) for a full usage examples.
Example usage:
```rust
let mut stream = MevShareClient::new()?.subscribe();
loop {
let event = stream.try_next().await?;
if let Some(event) = event {
info!("Event: {:?}", event);
}
}
```
# Acknowledgements
Many thanks to the [Flashbots](https://www.flashbots.net) team for proving this API. And many thanks to the [alloy-rs](https://github.com/alloy-rs) team.
# License
This project is licensed under the [Apache 2.0](./LICENSE-APACHE) or [MIT](./LICENSE-MIT).