pub struct FlashbotsClient<P, T> {
pub flashbots_middleware: FlashbotsMiddleware<P, T>,
pub name: String,
}
Fields§
§flashbots_middleware: FlashbotsMiddleware<P, T>
§name: String
Implementations§
Source§impl<P, T> FlashbotsClient<P, T>
impl<P, T> FlashbotsClient<P, T>
pub fn new(provider: P, url: &str) -> Self
pub fn new_no_sign(provider: P, url: &str) -> Self
fn create_flashbots_middleware( provider: P, url: &str, ) -> FlashbotsMiddleware<P, T>
fn create_flashbots_no_signer_middleware( provider: P, url: &str, ) -> FlashbotsMiddleware<P, T>
pub async fn call_bundle( &self, request: &BundleRequest, ) -> Result<SimulatedBundle>
pub async fn send_bundle(&self, request: &BundleRequest) -> Result<()>
pub async fn send_signed_body( &self, body: String, signature: String, ) -> Result<()>
Trait Implementations§
Source§impl<P: Clone, T: Clone> Clone for FlashbotsClient<P, T>
impl<P: Clone, T: Clone> Clone for FlashbotsClient<P, T>
Source§fn clone(&self) -> FlashbotsClient<P, T>
fn clone(&self) -> FlashbotsClient<P, T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<P, T> Freeze for FlashbotsClient<P, T>where
P: Freeze,
impl<P, T> !RefUnwindSafe for FlashbotsClient<P, T>
impl<P, T> Send for FlashbotsClient<P, T>
impl<P, T> Sync for FlashbotsClient<P, T>
impl<P, T> Unpin for FlashbotsClient<P, T>
impl<P, T> !UnwindSafe for FlashbotsClient<P, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.