MCPcopy Create free account
hub / github.com/base/base / on_rpc_started

Method on_rpc_started

crates/execution/node/src/node.rs:558–566  ·  view source on GitHub ↗

Sets the hook that is run once the rpc server is started.

(mut self, hook: F)

Source from the content-addressed store, hash-verified

556
557 /// Sets the hook that is run once the rpc server is started.
558 pub fn on_rpc_started<F>(mut self, hook: F) -> Self
559 where
560 F: FnOnce(RpcContext<'_, N, EthB::EthApi>, RethRpcServerHandles) -> eyre::Result<()>
561 + Send
562 + 'static,
563 {
564 self.rpc_add_ons = self.rpc_add_ons.on_rpc_started(hook);
565 self
566 }
567
568 /// Sets the hook that is run to configure the rpc modules.
569 pub fn extend_rpc_modules<F>(mut self, hook: F) -> Self

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected