pub trait MevSimApiServer:
Sized
+ Send
+ Sync
+ 'static {
// Required method
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 MevSimApi RPC API.
Required Methods§
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".