Expand description
Configure reth RPC.
This crate contains several builder and config types that allow to configure the selection of
RethRpcModule
specific to transports (ws, http, ipc).
The RpcModuleBuilder
is the main entrypoint for configuring all reth modules. It takes
instances of components required to start the servers, such as provider impls, network and
transaction pool. RpcModuleBuilder::build
returns a TransportRpcModules
which contains
the transport specific config (what APIs are available via this transport).
The RpcServerConfig
is used to assemble and start the http server, ws server, ipc servers,
it requires the TransportRpcModules
so it can start the servers with the configured modules.
Re-exports§
pub use eth::EthHandlers;
Modules§
- auth
- Auth server utilities.
- config
- RPC server utilities.
- constants
- Common RPC constants.
- error
- Rpc error utilities.
- eth
- Eth utils
- rate_
limiter - [
jsonrpsee
] helper layer for rate limiting certain methods.
Structs§
- Identity
- A no-op middleware.
- IpcRpc
Service Builder - Similar to [
tower::ServiceBuilder
] but doesn’t support any tower middleware implementations. - IpcServer
Builder - Builder to configure and create a JSON-RPC server
- Metered
Request Future - Response future to update the metrics for a single request/response pair.
- RpcModule
Builder - A builder type to configure the RPC module: See [
RpcModule
] - RpcModule
Config - Bundles settings for modules
- RpcModule
Config Builder - Configures
RpcModuleConfig
- RpcRegistry
Inner - A Helper type the holds instances of the configured modules.
- RpcRequest
Metrics Service - A [
RpcServiceT
] middleware that captures RPC metrics for the server. - RpcServer
Config - A builder type for configuring and launching the servers that will handle RPC requests.
- RpcServer
Handle - A handle to the spawned servers.
- Server
Builder - Builder to configure and create a JSON-RPC server
- Stack
- Two middlewares chained together.
- Transport
RpcModule Config - Holds modules to be installed per transport type
- Transport
RpcModules - Holds installed modules per transport type.
Enums§
- Cors
Domain Error - Error thrown when parsing cors domains went wrong
- Reth
RpcModule - Represents RPC modules that are supported by reth
- RpcModule
Selection - Describes the modules that should be installed.
Functions§
- launch
- Convenience function for starting a server in one step.