Module rpc

Module rpc 

Source
Expand description

Builder support for rpc components.

Structs§

AuthServerOnlyHandle
Handle returned when only the authenticated Engine API server is launched.
BasicEngineApiBuilder
Builder for basic EngineApi implementation.
BasicEngineValidator
A helper type that provides reusable payload validation logic for network-specific validators.
BasicEngineValidatorBuilder
Basic implementation of EngineValidatorBuilder.
EthApiCtx
EthApiCtx struct This struct is used to pass the necessary context to the EthApiBuilder to build the EthApi.
Identity
A no-op middleware.
NoopEngineApi
Represents an empty Engine API [RpcModule].
NoopEngineApiBuilder
A noop Builder that satisfies the EngineApiBuilder trait without actually configuring an engine API module
RethRpcServerHandles
Contains the handles to the spawned RPC servers.
RpcAddOns
Node add-ons containing RPC server configuration, with customizable eth API handler.
RpcContext
Helper container to encapsulate RpcRegistryInner, TransportRpcModules and AuthRpcModule.
RpcHandle
Handle to the launched RPC servers.
RpcHooks
Contains hooks that are called during the rpc setup.
RpcModuleContainer
Helper container for the parameters commonly passed to RPC module extension functions.
RpcRegistry
Helper wrapper type to encapsulate the RpcRegistryInner over components trait.
RpcServerOnlyHandle
Handle returned when only the regular RPC server (HTTP/WS/IPC) is launched.
RpcService
JSON-RPC service middleware.
RpcServiceBuilder
Similar to [tower::ServiceBuilder] but doesn’t support any tower middleware implementations.
Stack
Two middlewares chained together.

Traits§

EngineApiBuilder
Builder for engine API RPC module.
EngineValidator
Type that validates the payloads processed by the engine.
EngineValidatorAddOn
Helper trait that provides the validator builder for the engine API
EngineValidatorBuilder
Builder trait for creating engine validators for the consensus engine.
EthApiBuilder
A EthApi that knows how to build eth namespace API from FullNodeComponents.
ExtendRpcModules
Event hook that is called when the rpc server is started.
OnRpcStarted
Event hook that is called once the rpc server is started.
PayloadValidatorBuilder
Builder trait for creating payload validators specifically for the Engine API.
RethRpcAddOns
Helper trait implemented for add-ons producing RpcHandle. Used by common node launcher implementations.
RethRpcMiddleware
A Helper alias trait for the RPC middleware supported by the server.