pub trait MevFullApiServer:
Sized
+ Send
+ Sync
+ 'static {
// Required methods
fn send_bundle(
&self,
request: MevSendBundle,
) -> impl Future<Output = RpcResult<EthBundleHash>> + Send;
fn sim_bundle(
&self,
bundle: MevSendBundle,
sim_overrides: SimBundleOverrides,
) -> impl Future<Output = RpcResult<SimBundleResponse>> + Send;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}Expand description
Server trait implementation for the MevFullApi RPC API.
Required Methods§
Sourcefn send_bundle(
&self,
request: MevSendBundle,
) -> impl Future<Output = RpcResult<EthBundleHash>> + Send
fn send_bundle( &self, request: MevSendBundle, ) -> impl Future<Output = RpcResult<EthBundleHash>> + Send
Submitting bundles to the relay. It takes in a bundle and provides a bundle hash as a return value.
Sourcefn sim_bundle(
&self,
bundle: MevSendBundle,
sim_overrides: SimBundleOverrides,
) -> impl Future<Output = RpcResult<SimBundleResponse>> + Send
fn sim_bundle( &self, bundle: MevSendBundle, sim_overrides: SimBundleOverrides, ) -> impl Future<Output = RpcResult<SimBundleResponse>> + Send
Similar to mev_sendBundle but instead of submitting a bundle to the relay, it returns
a simulation result. Only fully matched bundles can be simulated.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".