mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-26 23:58:46 -05:00
docs: add more docs for RpcAddsOns (#15986)
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
This commit is contained in:
@@ -346,6 +346,15 @@ where
|
||||
}
|
||||
|
||||
/// Node add-ons containing RPC server configuration, with customizable eth API handler.
|
||||
///
|
||||
/// This struct can be used to provide the RPC server functionality. It is responsible for launching
|
||||
/// the regular RPC and the authenticated RPC server (engine API). It is intended to be used and
|
||||
/// modified as part of the [`NodeAddOns`] see for example `OpRpcAddons`, `EthereumAddOns`.
|
||||
///
|
||||
/// It can be modified to register RPC API handlers, see [`RpcAddOns::launch_add_ons_with`] which
|
||||
/// takes a closure that provides access to all the configured modules (namespaces), and is invoked
|
||||
/// just before the servers are launched. This can be used to extend the node with custom RPC
|
||||
/// methods or even replace existing method handlers, see also [`TransportRpcModules`].
|
||||
pub struct RpcAddOns<
|
||||
Node: FullNodeComponents,
|
||||
EthB: EthApiBuilder<Node>,
|
||||
|
||||
Reference in New Issue
Block a user