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

Method extend_rpc_modules

crates/execution/node/src/node.rs:569–575  ·  view source on GitHub ↗

Sets the hook that is run to configure the rpc modules.

(mut self, hook: F)

Source from the content-addressed store, hash-verified

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
570 where
571 F: FnOnce(RpcContext<'_, N, EthB::EthApi>) -> eyre::Result<()> + Send + 'static,
572 {
573 self.rpc_add_ons = self.rpc_add_ons.extend_rpc_modules(hook);
574 self
575 }
576}
577
578impl<N, EthB, PVB, EB, EVB, Attrs, RpcMiddleware> NodeAddOns<N>

Callers 2

apply_toMethod · 0.80
install_proofs_historyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected