Skip to main content

EthApiBuilder

Trait EthApiBuilder 

Source
pub trait EthApiBuilder<N: FullNodeComponents>:
    Default
    + Send
    + 'static {
    type EthApi: FullEthApiServer<Provider = N::Provider, Pool = N::Pool>;

    // Required method
    fn build_eth_api(
        self,
        ctx: EthApiCtx<'_, N>,
    ) -> impl Future<Output = Result<Self::EthApi>> + Send;
}
Expand description

A EthApi that knows how to build eth namespace API from FullNodeComponents.

Required Associated Types§

Source

type EthApi: FullEthApiServer<Provider = N::Provider, Pool = N::Pool>

The Ethapi implementation this builder will build.

Required Methods§

Source

fn build_eth_api( self, ctx: EthApiCtx<'_, N>, ) -> impl Future<Output = Result<Self::EthApi>> + Send

Builds the EthApiServer from the given context.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§