pub trait ExtendRpcModules<Node: FullNodeComponents, EthApi: EthApiTypes>: Send {
// Required method
fn extend_rpc_modules(
self: Box<Self>,
ctx: RpcContext<'_, Node, EthApi>,
) -> Result<()>;
}
Expand description
Event hook that is called when the rpc server is started.
Required Methods§
Sourcefn extend_rpc_modules(
self: Box<Self>,
ctx: RpcContext<'_, Node, EthApi>,
) -> Result<()>
fn extend_rpc_modules( self: Box<Self>, ctx: RpcContext<'_, Node, EthApi>, ) -> Result<()>
The hook that is called once the rpc server is started.