mevshare 0.1.1

A Rust client library for subscribing to the Flashbots MEV-Share SSE event stream.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("HTTP error: {0}")]
    Http(#[from] reqwest::Error),

    #[error("SSE stream error: {0}")]
    Stream(String),

    #[error("Deserialize error: {0}")]
    Deserialize(#[from] serde_json::Error),
}