reth_rpc_builder

Function launch

Source
pub async fn launch<Provider, Pool, Network, Tasks, Events, EvmConfig, EthApi, BlockExecutor>(
    provider: Provider,
    pool: Pool,
    network: Network,
    module_config: impl Into<TransportRpcModuleConfig>,
    server_config: impl Into<RpcServerConfig>,
    executor: Tasks,
    events: Events,
    evm_config: EvmConfig,
    eth: DynEthApiBuilder<Provider, Pool, EvmConfig, Network, Tasks, Events, EthApi>,
    block_executor: BlockExecutor,
    consensus: Arc<dyn FullConsensus<BlockExecutor::Primitives>>,
    payload_validator: Arc<dyn PayloadValidator<Block = Provider::Block>>,
) -> Result<RpcServerHandle, RpcError>
where Provider: FullRpcProvider<Block = ProviderBlock<EthApi::Provider>, Receipt = ProviderReceipt<EthApi::Provider>, Header = ProviderHeader<EthApi::Provider>> + AccountReader + ChangeSetReader, Pool: TransactionPool<Transaction = <EthApi::Pool as TransactionPool>::Transaction> + 'static, Network: NetworkInfo + Peers + Clone + 'static, Tasks: TaskSpawner + Clone + 'static, Events: CanonStateSubscriptions<Primitives = BlockExecutor::Primitives> + Clone + 'static, EvmConfig: ConfigureEvm<Header = <BlockExecutor::Primitives as NodePrimitives>::BlockHeader, Transaction = <BlockExecutor::Primitives as NodePrimitives>::SignedTx>, EthApi: FullEthApiServer<Provider: BlockReader<Block = <BlockExecutor::Primitives as NodePrimitives>::Block, Receipt = <BlockExecutor::Primitives as NodePrimitives>::Receipt, Header = <BlockExecutor::Primitives as NodePrimitives>::BlockHeader>>, BlockExecutor: BlockExecutorProvider,
Expand description

Convenience function for starting a server in one step.