Skip to main content

RethEngineApiClient

Trait RethEngineApiClient 

Source
pub trait RethEngineApiClient<ExecutionData>: ClientT
where ExecutionData: Send + Sync + 'static + Serialize,
{ // Provided methods fn reth_new_payload( &self, payload: RethNewPayloadInput<ExecutionData>, wait_for_persistence: Option<bool>, wait_for_caches: Option<bool>, ) -> impl Future<Output = Result<RethPayloadStatus, Error>> + Send { ... } fn reth_forkchoice_updated( &self, forkchoice_state: ForkchoiceState, ) -> impl Future<Output = Result<ForkchoiceUpdated, Error>> + Send { ... } }
Expand description

Client implementation for the RethEngineApi RPC API.

Provided Methods§

Source

fn reth_new_payload( &self, payload: RethNewPayloadInput<ExecutionData>, wait_for_persistence: Option<bool>, wait_for_caches: Option<bool>, ) -> impl Future<Output = Result<RethPayloadStatus, Error>> + Send

Reth-specific newPayload that accepts either ExecutionData directly or an RLP-encoded block.

wait_for_persistence (default true): waits for in-flight persistence to complete. wait_for_caches (default true): waits for execution cache and sparse trie locks.

Source

fn reth_forkchoice_updated( &self, forkchoice_state: ForkchoiceState, ) -> impl Future<Output = Result<ForkchoiceUpdated, Error>> + Send

Reth-specific forkchoiceUpdated that sends a regular forkchoice update with no payload attributes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<TypeJsonRpseeInternal, ExecutionData> RethEngineApiClient<ExecutionData> for TypeJsonRpseeInternal
where TypeJsonRpseeInternal: ClientT, ExecutionData: Send + Sync + 'static + Serialize,