pub trait MevSimApiServer:
Sized
+ Send
+ Sync
+ 'static {
// Required method
fn sim_bundle(
&self,
bundle: MevSendBundle,
sim_overrides: SimBundleOverrides,
) -> impl Future<Output = Result<SimBundleResponse, ErrorObject<'static>>> + Send;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}Available on crate feature
rpc only.Expand description
Server trait implementation for the MevSimApi RPC API.
Required Methods§
Sourcefn sim_bundle(
&self,
bundle: MevSendBundle,
sim_overrides: SimBundleOverrides,
) -> impl Future<Output = Result<SimBundleResponse, ErrorObject<'static>>> + Send
fn sim_bundle( &self, bundle: MevSendBundle, sim_overrides: SimBundleOverrides, ) -> impl Future<Output = Result<SimBundleResponse, ErrorObject<'static>>> + 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".