Struct ethers_flashbots::Relay [−][src]
pub struct Relay<S> { /* fields omitted */ }Expand description
A Flashbots relay client.
The client automatically signs every request and sets the Flashbots authorization header appropriately with the given signer.
Note: You probably do not want to use this directly, unless
you want to interact directly with the Relay. Most users should use
FlashbotsMiddleware instead.
Implementations
pub async fn request<T: Serialize + Send + Sync, R: DeserializeOwned>(
&self,
method: &str,
params: T
) -> Result<R, RelayError<S>>
pub async fn request<T: Serialize + Send + Sync, R: DeserializeOwned>(
&self,
method: &str,
params: T
) -> Result<R, RelayError<S>>
Sends a request with the provided method to the relay, with the parameters serialized as JSON.
Trait Implementations
Auto Trait Implementations
impl<S> !RefUnwindSafe for Relay<S>
impl<S> !UnwindSafe for Relay<S>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self