pub trait BlockSubmissionValidationApiServer: Sized + Send + Sync + 'static {
    // Required methods
    fn validate_builder_submission_v1<'life0, 'async_trait>(
        &'life0 self,
        request: BuilderBlockValidationRequest,
    ) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn validate_builder_submission_v2<'life0, 'async_trait>(
        &'life0 self,
        request: BuilderBlockValidationRequestV2,
    ) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;

    // Provided method
    fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description

Server trait implementation for the BlockSubmissionValidationApi RPC API.

Required Methods§

source

fn validate_builder_submission_v1<'life0, 'async_trait>( &'life0 self, request: BuilderBlockValidationRequest, ) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

A Request to validate a block submission.

source

fn validate_builder_submission_v2<'life0, 'async_trait>( &'life0 self, request: BuilderBlockValidationRequestV2, ) -> Pin<Box<dyn Future<Output = Result<(), ErrorObject<'static>>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

A Request to validate a block submission.

Provided Methods§

source

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

Object Safety§

This trait is not object safe.

Implementors§